public static class BooleanPredicate.Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static BooleanPredicate |
and(BooleanPredicate p1,
BooleanPredicate p2)
Applies logical AND to predicates.
|
static BooleanPredicate |
identity()
Returns a predicate that always returns its input argument.
|
static BooleanPredicate |
negate(BooleanPredicate p1)
Applies logical negation to predicate.
|
static BooleanPredicate |
or(BooleanPredicate p1,
BooleanPredicate p2)
Applies logical OR to predicates.
|
static BooleanPredicate |
xor(BooleanPredicate p1,
BooleanPredicate p2)
Applies logical XOR to predicates.
|
public static BooleanPredicate identity()
public static BooleanPredicate and(BooleanPredicate p1, BooleanPredicate p2)
p1 - the first predicatep2 - the second predicateBooleanPredicateNullPointerException - if p1 or p2 is nullpublic static BooleanPredicate or(BooleanPredicate p1, BooleanPredicate p2)
p1 - the first predicatep2 - the second predicateBooleanPredicateNullPointerException - if p1 or p2 is nullpublic static BooleanPredicate xor(BooleanPredicate p1, BooleanPredicate p2)
p1 - the first predicatep2 - the second predicateBooleanPredicateNullPointerException - if p1 or p2 is nullpublic static BooleanPredicate negate(BooleanPredicate p1)
p1 - the predicate to be negatedBooleanPredicateNullPointerException - if p1 is nullCopyright © 2017. All rights reserved.