- Type Parameters:
T- any Java type
public interface Predicate<T>
A Predicate on type T is an object that provides a method "apply" which takes
an element of T and returns
true or false.-
Method Summary
-
Method Details
-
apply
Apply this predicate to the element x of T.- Parameters:
x- an element of T- Returns:
- the result of applying this predicate to x
-