public final class And extends DefaultConditionBuilder implements CompositeCondition
Condition
instances. If all provided conditions return true
, this
condition returns true
. If any provided conditions return false
, this condition returns
false
.Modifier and Type | Method and Description |
---|---|
static And |
all(Condition... conditions)
Creates a new
And 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 And all(Condition... conditions)
And
condition. If all provided Condition
instances return true
, this
condition returns true
. If any provided conditions return false
, this condition returns
false
.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.