public abstract class DefaultConditionBuilder extends Object implements ConditionBuilder
Condition
objects; this class adds logical
operators to any class extending it.Constructor and Description |
---|
DefaultConditionBuilder() |
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
and(Condition condition)
|
ConditionBuilder |
andNot(Condition condition)
|
ConditionBuilder |
or(Condition condition)
Append a new
Condition to this builder. |
ConditionBuilder |
orNot(Condition condition)
Append a new
Condition to this builder. |
public ConditionBuilder and(Condition condition)
ConditionBuilder
Condition
to this builder, which must evaluate to true in order for this composite
Condition
to evaluate to true.and
in interface ConditionBuilder
public ConditionBuilder andNot(Condition condition)
ConditionBuilder
Condition
to this builder, which must not evaluate to true in order for this composite
Condition
to evaluate to true.andNot
in interface ConditionBuilder
public ConditionBuilder or(Condition condition)
ConditionBuilder
Condition
to this builder. If either this or the given Condition
evaluate to true,
the composite Condition
will evaluate to true.or
in interface ConditionBuilder
public ConditionBuilder orNot(Condition condition)
ConditionBuilder
Condition
to this builder. If either this evaluates to true or the given Condition
evaluates to false, the composite Condition
will evaluate to true.orNot
in interface ConditionBuilder
Copyright © 2014 OCPsoft. All Rights Reserved.