Class AnyMatchPredicate<T>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.logic.AnyMatchPredicate<T>
-
- Type Parameters:
T- type of object upon which this predicate operates
public class AnyMatchPredicate<T> extends Object implements Predicate<Iterable<T>>
APredicatethat checks that any item in anIterablematches a given target predicate. If the givenIterableis null or contains no items this method will returnfalse, otherwise it passes eachIterablevalue to the target predicate, even if those values arenull. The firsttruereturned by the target predicate stops evaluation and causes this predicate to return (i.e., it short-circuits the evaluation).
-
-
Constructor Summary
Constructors Constructor Description AnyMatchPredicate(Predicate<T> target)Constructor.
-