Package org.rspeer.commons.predicate
Class Predicates
- java.lang.Object
-
- org.rspeer.commons.predicate.Predicates
-
public class Predicates extends Object
Provides utilities for predicates
-
-
Constructor Summary
Constructors Constructor Description Predicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>
allMatching(Predicate<? super T> predicate, Iterable<T> elems)
static <T> Predicate<T>
always()
static <T> Predicate<T>
and(Predicate<T> a, Predicate<T> b)
static <T> T
firstMatching(Predicate<? super T> predicate, Iterable<T> elems)
static <T> boolean
matching(Predicate<? super T> predicate, Iterable<T> elems)
static <T> Predicate<T>
never()
static <T> Predicate<T>
or(Predicate<T> a, Predicate<T> b)
-