| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
and(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical AND to predicates.
|
static <T> Predicate<? super T> |
negate(Predicate<? super T> p1)
Apply logical negation to predicate.
|
static <T> Predicate<T> |
or(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical OR to predicates.
|
static <T> Predicate<T> |
xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical XOR to predicates.
|
public static <T> Predicate<T> and(Predicate<? super T> p1, Predicate<? super T> p2)
T - the type of the input to the functionp1 - the first predicatep2 - the second predicatePredicateNullPointerException - if p1 or p2 is nullpublic static <T> Predicate<T> or(Predicate<? super T> p1, Predicate<? super T> p2)
T - the type of the input to the functionp1 - the first predicatep2 - the second predicatePredicateNullPointerException - if p1 or p2 is nullpublic static <T> Predicate<T> xor(Predicate<? super T> p1, Predicate<? super T> p2)
T - the type of the input to the functionp1 - the first predicatep2 - the second predicatePredicateNullPointerException - if p1 or p2 is nullpublic static <T> Predicate<? super T> negate(Predicate<? super T> p1)
T - the type of the input to the functionp1 - the predicate to be negatedPredicateNullPointerException - if p1 is nullCopyright © 2015. All rights reserved.