public final class OrCondition extends Object implements StopCondition
| Constructor and Description |
|---|
OrCondition(List<StopCondition> conditionList)
Creates an OR condition from specified conditions.
|
OrCondition(StopCondition... conditionList)
Creates an OR condition from specified conditions.
|
| Modifier and Type | Method and Description |
|---|---|
StopCondition |
getStopReason()
Returns the first satisfied condition.
|
boolean |
isNotSatisfied()
Returns
true is this condition is not satisfied. |
boolean |
isSatisfied()
Returns
true is this condition is satisfied. |
public OrCondition(List<StopCondition> conditionList)
conditionList - the list of conditions. Cannot be null.public OrCondition(StopCondition... conditionList)
conditionList - the list of conditions. Cannot be null.public boolean isSatisfied()
StopConditiontrue is this condition is satisfied.isSatisfied in interface StopConditiontrue - if this condition is satisfied false - otherwise public boolean isNotSatisfied()
StopConditiontrue is this condition is not satisfied.isNotSatisfied in interface StopConditiontrue - if this condition is not satisfied false - otherwise public StopCondition getStopReason()
null is returned.Copyright © 2012. All Rights Reserved.