com.epam.jdi.light.elements.init.rules.SetupRule Maven / Gradle / Ivy
package com.epam.jdi.light.elements.init.rules;
import com.epam.jdi.light.elements.init.SiteInfo;
import com.epam.jdi.tools.func.JAction1;
import com.epam.jdi.tools.func.JFunc1;
/**
* Created by Roman Iovlev on 26.09.2019
* Email: [email protected]; Skype: roman.iovlev
*/
public class SetupRule {
public JFunc1 condition;
public JAction1 action;
public SetupRule(JFunc1 condition, JAction1 action) {
this.condition = condition;
this.action = action;
}
public static SetupRule sRule(
JFunc1 condition, JAction1 action) {
return new SetupRule(condition, action);
}
}