Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » [javadoc | source]
org.apache.commons.collections
public interface: Predicate [javadoc | source]

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

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.

Method from org.apache.commons.collections.Predicate Summary:
evaluate
Method from org.apache.commons.collections.Predicate Detail:
 public boolean evaluate(Object object)
    Use the specified parameter to perform a test that returns true or false.