org.apache.commons.collections
Interface Predicate
- PredicateDecorator
- AllPredicate, AndPredicate, AnyPredicate, EqualPredicate, ExceptionPredicate, FalsePredicate, IdentityPredicate, InstanceofPredicate, NonePredicate, NotNullPredicate, NotPredicate, NullIsExceptionPredicate, NullIsFalsePredicate, NullIsTruePredicate, NullPredicate, OnePredicate, OrPredicate, TransformedPredicate, TransformerPredicate, TruePredicate, UniquePredicate
public interface Predicate
Defines a functor interface implemented by classes that perform a predicate
test on an object.
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.
$Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $- James Strachan
- Stephen Colebourne
boolean | evaluate(Object object)- Use the specified parameter to perform a test that returns true or false.
|
evaluate
public boolean evaluate(Object object)
Use the specified parameter to perform a test that returns true or false.
object - the object to evaluate, should not be changed
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.