|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Predicate<T>
Defines a functor interface implemented by classes that perform a predicate test on an object.
APredicate 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.
| Method Summary | |
|---|---|
boolean |
evaluate(T object)
Use the specified parameter to perform a test that returns true or false. |
| Method Detail |
|---|
boolean evaluate(T object)
object - the object to evaluate, should not be changed
ClassCastException - (runtime) if the input is the wrong class
IllegalArgumentException - (runtime) if the input is invalid
FunctorException - (runtime) if the predicate encounters a problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||