Package org.apache.commons.collections
Interface Predicate
-
- All Known Subinterfaces:
DeviceGroupPredicate
,PredicateDecorator
- All Known Implementing Classes:
AbstractNodePredicate
,AbstractResourcePredicate
,AllPredicate
,AndPredicate
,AnyPredicate
,AuthorizableFilterPredicate
,AuthorizablePredicate
,DialogPredicate
,EqualPredicate
,ExceptionPredicate
,FalsePredicate
,HierarchyNotFilePredicate
,IdentityPredicate
,InstanceofPredicate
,IsAuthorizableFolderPredicate
,IsFolderPredicate
,IsHierarchyNodePredicate
,IsNoSystemNodePredicate
,IsPageNodePredicate
,IsTemplateNodePredicate
,IsUnstructuredPredicate
,NonePredicate
,NotNullPredicate
,NotPredicate
,NullIsExceptionPredicate
,NullIsFalsePredicate
,NullIsTruePredicate
,NullPredicate
,OnePredicate
,OrPredicate
,ResourceFilter
,TransformedPredicate
,TransformerPredicate
,TruePredicate
,UniquePredicate
@Deprecated(since="2021-04-30") public interface Predicate
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Defines a functor interface implemented by classes that perform a predicate test on an object.A
Predicate
is the object equivalent of anif
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.- Since:
- Commons Collections 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
evaluate(java.lang.Object object)
Deprecated.Use the specified parameter to perform a test that returns true or false.
-
-
-
Method Detail
-
evaluate
boolean evaluate(java.lang.Object object)
Deprecated.Use the specified parameter to perform a test that returns true or false.- Parameters:
object
- the object to evaluate, should not be changed- Returns:
- true or false
- Throws:
java.lang.ClassCastException
- (runtime) if the input is the wrong classjava.lang.IllegalArgumentException
- (runtime) if the input is invalidFunctorException
- (runtime) if the predicate encounters a problem
-
-