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
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.
Modifier and Type | Method | Description |
---|---|---|
boolean |
evaluate(java.lang.Object object) |
Use the specified parameter to perform a test that returns true or false.
|
boolean evaluate(java.lang.Object object)
object
- the object to evaluate, should not be changedjava.lang.ClassCastException
- (runtime) if the input is the wrong classjava.lang.IllegalArgumentException
- (runtime) if the input is invalidFunctorException
- (runtime) if the predicate encounters a problemCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.