Eclipse
IntelliJ
NetBeans
Upload
API List
Favorites
Packages
Classes
Methods
Limit search to favorites
Recent
Register
Login
Classic Mode
Library:
Apache Jakarta Commons Collections 3.2
Package:
org.apache.commons.collections
Class
public
class
PredicateUtils
Overview
Inheritance
Members
Usage
Source
Books
Since
Commons Co
Version
$Revision:
Author(s)
Stephen Colebourne, Ola Berg
PredicateUtils
provides reference implementations and utilities for the Predicate functor interface. The supplied predicates are:
Invoker - returns the result of a method call on the input object
InstanceOf - true if the object is an instanceof a class
Equal - true if the object equals() a specified object
Identity - true if the object == a specified object
Null - true if the object is null
NotNull - true if the object is not null
Unique - true if the object has not already been evaluated
And/All - true if all of the predicates are true
Or/Any - true if any of the predicates is true
Either/One - true if only one of the predicate is true
Neither/None - true if none of the predicates are true
Not - true if the predicate is false, and vice versa
Transformer - wraps a Transformer as a Predicate
True - always return true
False - always return false
Exception - always throws an exception
NullIsException/NullIsFalse/NullIsTrue - check for null input
Transformed - transforms the input before calling the predicate
All the supplied predicates are Serializable.
Wiki javadoc
Use
textile entry format
.
Add your comments here.
NOTE: Usage information is based only on libraries in your favorites list.
In Constructors
In Fields
Returned by
As method parameter
Home
-
About
-
FAQ
-
Privacy
-
Contact
PredicateUtilsprovides reference implementations and utilities for the Predicate functor interface. The supplied predicates are:- Invoker - returns the result of a method call on the input object
- InstanceOf - true if the object is an instanceof a class
- Equal - true if the object equals() a specified object
- Identity - true if the object == a specified object
- Null - true if the object is null
- NotNull - true if the object is not null
- Unique - true if the object has not already been evaluated
- And/All - true if all of the predicates are true
- Or/Any - true if any of the predicates is true
- Either/One - true if only one of the predicate is true
- Neither/None - true if none of the predicates are true
- Not - true if the predicate is false, and vice versa
- Transformer - wraps a Transformer as a Predicate
- True - always return true
- False - always return false
- Exception - always throws an exception
- NullIsException/NullIsFalse/NullIsTrue - check for null input
- Transformed - transforms the input before calling the predicate
All the supplied predicates are Serializable.