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