public final class Predicates extends Object
Modifier and Type | Field and Description |
---|---|
static Predicate |
EMPTY
An empty predicate.
|
Modifier and Type | Method and Description |
---|---|
static Predicate |
and(List<? extends Predicate> predicates)
Concatenates the given predicates to a combined predicate through a logical AND operator.
|
static Predicate |
and(Predicate one,
Predicate two,
Predicate... more)
Concatenates the given predicates to a combined predicate through a logical AND operator.
|
static Predicate |
getMinimalPredicate(CompositePredicate compositePredicate)
Returns the minimal predicate for the given composite.
|
static Predicate |
not(Predicate predicate)
Negates the given predicate through a NOT operator.
|
static Predicate |
or(List<? extends Predicate> predicates)
Concatenates the given predicates to a combined predicate through a logical OR operator.
|
static Predicate |
or(Predicate one,
Predicate two,
Predicate... more)
Concatenates the given predicates to a combined predicate through a logical OR operator.
|
public static final Predicate EMPTY
public static Predicate and(List<? extends Predicate> predicates)
predicates
- the predicates to and-concatenatepublic static Predicate and(Predicate one, Predicate two, Predicate... more)
one
- the first predicatetwo
- the second predicatemore
- all further predicatespublic static Predicate or(List<? extends Predicate> predicates)
predicates
- the predicates to or-concatenatepublic static Predicate or(Predicate one, Predicate two, Predicate... more)
one
- the first predicatetwo
- the second predicatemore
- all further predicatespublic static Predicate not(Predicate predicate)
predicate
- the predicate to be negatedpublic static Predicate getMinimalPredicate(CompositePredicate compositePredicate)
compositePredicate
- the composite predicateCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.