⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
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.
Since:
Commons Collections 1.0
Authors:
James Strachan
Stephen Colebourne

Method Summary

boolean

evaluate(Object object)

Use the specified parameter to perform a test that returns true or false.

Method Details

evaluate

public boolean evaluate(Object object)

Use the specified parameter to perform a test that returns true or false.

Parameters:
object - the object to evaluate
Returns:
true or false
Throws:
- (runtime) if the input is the wrong class
- (runtime) if the input is invalid
FunctorException - (runtime) if the predicate encounters a problem