Predicate
Interface Predicate<T>
- Type Parameters:
-
T
- the type of the input to the predicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Predicate<T>
Represents a predicate (boolean-valued function) of one argument.
This is a functional interface whose functional method is test(Object)
.
- Since:
- 1.8
Methods
test
boolean test(T t)
Evaluates this predicate on the given argument.
- Parameters:
-
t
- the input argument - Returns:
-
true
i