public class ComplexPredicate extends Predicate
| Modifier and Type | Class and Description |
|---|---|
static class |
ComplexPredicate.ConjunctionOp
The operator to use to conjoin criteria together.
|
| Constructor and Description |
|---|
ComplexPredicate()
Constructs an empty ComplexPredicate with a default conjunction
operator of ConjunctionOp.And.
|
ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp)
Constructs a ComplexPredicate with the specified conjunction operator.
|
ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp,
Predicate... predicates)
Constructs a ComplexPredicate with the specified conjunction operator
and a list of Predicates as its children.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate |
clonePredicate()
Clones the ComplexPredicate so that consumers of it can
directly manipulate the constituents of it.
|
java.util.List<Predicate> |
getChildren()
Gets a collection of child Predicate objects for this
ComplexPredicate.
|
ComplexPredicate.ConjunctionOp |
getConjunctionOperator()
Gets the conjunction operator used by the ComplexPredicate.
|
void |
setChildren(java.util.List<Predicate> children)
Allows setting of the entire List of child Predicate objects.
|
java.lang.String |
toString()
A String representation of the ComplexPredicate.
|
public ComplexPredicate()
public ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp)
conjunctionOp - a ConjunctionOp that specifies either an ANDing
or an ORing of all the Criteriapublic ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp, Predicate... predicates)
conjunctionOp - a ConjunctionOp that specifies either an ANDing
or an ORing of all the Criteriapublic ComplexPredicate.ConjunctionOp getConjunctionOperator()
public java.util.List<Predicate> getChildren()
public void setChildren(java.util.List<Predicate> children)
public java.lang.String toString()
toString in class java.lang.Objectpublic Predicate clonePredicate()
clonePredicate in class Predicate