org.apache.commons.collections.functors
public final class IdentityPredicate extends Object implements Predicate, Serializable
Since: Commons Collections 3.0
Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
Constructor Summary | |
---|---|
IdentityPredicate(Object object)
Constructor that performs no validation.
|
Method Summary | |
---|---|
boolean | evaluate(Object object)
Evaluates the predicate returning true if the input object is identical to
the stored object.
|
static Predicate | getInstance(Object object)
Factory to create the identity predicate.
|
Object | getValue()
Gets the value.
|
getInstance
if you want that.
Parameters: object the object to compare to
Parameters: object the input object
Returns: true if input is the same object as the stored value
Parameters: object the object to compare to
Returns: the predicate
Throws: IllegalArgumentException if the predicate is null
Returns: the value
Since: Commons Collections 3.1