Returns a predicate that evaluates to true if each of its components evaluates to true. The components are evaluated in order, and evaluation will be "short-circuited" as soon as a false predicate is found. It defensively copies the iterable passed in, so future changes to it won't a
(Iterable<? extends Predicate<? super T>> components)
| 99 | * true}. |
| 100 | */ |
| 101 | public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> components) { |
| 102 | return new AndPredicate<T>(defensiveCopy(components)); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Returns a predicate that evaluates to {@code true} if each of its components evaluates to |
no test coverage detected