public final class Or extends DefaultConditionBuilder implements CompositeCondition
Condition
instances. If any conditions return true
, this condition
returns true
. If all provided conditions return false
, this condition returns
false
.Modifier and Type | Method and Description |
---|---|
static Or |
any(Condition... conditions)
Creates a new
Or condition. |
boolean |
evaluate(Rewrite event,
EvaluationContext context)
Evaluate this condition against the given
Rewrite event. |
List<Condition> |
getConditions()
Returns all
Condition objects contained within this CompositeCondition ; otherwise, returns an
empty List . |
String |
toString() |
and, andNot, or, orNot
public static Or any(Condition... conditions)
Or
condition. If any provided conditions return true, this condition returns true.conditions
- the array of conditions to be evaluatedpublic boolean evaluate(Rewrite event, EvaluationContext context)
Condition
Rewrite
event. If this condition does
not apply to the given event, it must return false. If the condition applies and is satisfied, return true.public List<Condition> getConditions()
CompositeCondition
Condition
objects contained within this CompositeCondition
; otherwise, returns an
empty List
.getConditions
in interface CompositeCondition
Copyright © 2014 OCPsoft. All Rights Reserved.