public final class PredicateSupport extends Object
| Modifier | Constructor and Description |
|---|---|
private |
PredicateSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<Iterable<T>> |
allMatch(Predicate<T> target)
Creates a predicate that checks that all elements of an
Iterable matches a given target predicate. |
static <T> Predicate<Iterable<T>> |
anyMatch(Predicate<T> target)
Creates a predicate that checks that any element in an
Iterable matches a given target predicate. |
static Predicate<CharSequence> |
caseInsensitiveMatch(String target)
Creates a predicate that checks if a given
CharSequence matches a target string while ignoring case. |
@Nonnull public static <T> Predicate<Iterable<T>> allMatch(@Nonnull Predicate<T> target)
Iterable matches a given target predicate.T - type of objects in the iterable and that the target operates upontarget - predicate used to check each element in the iterable@Nonnull public static <T> Predicate<Iterable<T>> anyMatch(@Nonnull Predicate<T> target)
Iterable matches a given target predicate.T - type of objects in the iterable and that the target operates upontarget - predicate used to check each element in the iterable@Nonnull public static Predicate<CharSequence> caseInsensitiveMatch(@Nonnull String target)
CharSequence matches a target string while ignoring case.target - the target string to match againstCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.