A Predicate is the object equivalent of an if statement.
It uses the input object to return a true or false value, and is often used in
validation or filtering.
Standard implementations of common predicates are provided by
PredicateUtils. These include true, false, instanceof, equals, and,
or, not, method invokation and null testing.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true or falsethe object to evaluate, should not be changed object)Use the specified parameter to perform a test that returns true or false. |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(T object) Use the specified parameter to perform a test that returns true or false.
| |