public class PredicateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Predicate<T> |
allOf(Predicate<T>... predicates)
Returns a new predicate that will report
true if all provided predicates report
true for the tested argument. |
static <T> Predicate<T> |
anyOf(Predicate<T>... predicates)
Returns a new predicate that will report
true if any of the provided predicates
report true for the tested argument. |
public static <T> Predicate<T> allOf(Predicate<T>... predicates)
true
if all provided predicates report
true
for the tested argument.T
- the type of object being testedpredicates
- the set of predicates to test withtrue
for the
tested argument in order to return true
public static <T> Predicate<T> anyOf(Predicate<T>... predicates)
true
if any of the provided predicates
report true
for the tested argument.T
- the type of object being testedpredicates
- the set of predicates to test withtrue
for the
tested argument in order to return true
This work is licensed under a Creative Commons Attribution 4.0 International License.