org.apache.commons.collections
Interface Predicate

All Known Implementing Classes:
InstanceofPredicate, AnyPredicate, FalsePredicate, AllPredicate, NotPredicate, AndPredicate, OrPredicate, UniquePredicate, ExceptionPredicate, NullIsExceptionPredicate, NotNullPredicate, EqualPredicate, TruePredicate, NullIsFalsePredicate, NullIsTruePredicate, OnePredicate, IdentityPredicate, TransformerPredicate, NonePredicate, NullPredicate

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
Version:
$Revision: 1.9 $ $Date: 2004/01/14 21:43:04 $
Author:
James Strachan, Stephen Colebourne

Method Summary
 boolean evaluate(Object object)
          Use the specified parameter to perform a test that returns true or false.
 

Method Detail

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:
ClassCastException - (runtime) if the input is the wrong class
IllegalArgumentException - (runtime) if the input is invalid
FunctorException - (runtime) if the predicate encounters a problem


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.