net.serenitybdd.screenplay.conditions.ConditionalPerformableOnBoolean Maven / Gradle / Ivy
package net.serenitybdd.screenplay.conditions;
import net.serenitybdd.screenplay.Actor;
public class ConditionalPerformableOnBoolean extends ConditionalPerformable {
private final Boolean condition;
public ConditionalPerformableOnBoolean(Boolean condition) {
super();
this.condition = condition;
}
@Override
protected Boolean evaluatedConditionFor(Actor actor) {
return condition;
}
}