org.apache.commons.collections
Interface Predicate
public interface Predicate
Defines a functor interface implemented by classes that
perform a predicate test on an object. Predicate instances can be used
to implement queries or to do filtering.
- Commons Collections 1.0
- James Strachan
- Stephen Colebourne
evaluate
public boolean evaluate(Object object)
Use the specified parameter to perform a test that returns true or false.
- object - the object to evaluate
- true or false
- (runtime) if the input is the wrong class
- (runtime) if the input is invalidFunctorException
- (runtime) if the predicate encounters a problem