public static class BooleanPredicate.Util
extends java.lang.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(@NotNull BooleanPredicate p1, @NotNull BooleanPredicate p2)
p1 - the first predicatep2 - the second predicateBooleanPredicatejava.lang.NullPointerException - if p1 or p2 is nullpublic static BooleanPredicate or(@NotNull BooleanPredicate p1, @NotNull BooleanPredicate p2)
p1 - the first predicatep2 - the second predicateBooleanPredicatejava.lang.NullPointerException - if p1 or p2 is nullpublic static BooleanPredicate xor(@NotNull BooleanPredicate p1, @NotNull BooleanPredicate p2)
p1 - the first predicatep2 - the second predicateBooleanPredicatejava.lang.NullPointerException - if p1 or p2 is nullpublic static BooleanPredicate negate(@NotNull BooleanPredicate p1)
p1 - the predicate to be negatedBooleanPredicatejava.lang.NullPointerException - if p1 is null