Predicate: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
boolean test(T t); | boolean test(T t); | ||
... | ... | ||
} | } |
Revision as of 19:04, 26 March 2018
External
Internal
Overview
A predicate is a function that evaluates an argument and returns a boolean.
@FunctionalInterface
public interface Predicate<T> {
boolean test(T t);
...
}