| |
|
| java.lang.Object org.apache.commons.collections.functors.IdentityPredicate
IdentityPredicate | final public class IdentityPredicate implements Predicate,Serializable(Code) | | Predicate implementation that returns true if the input is the same object
as the one stored in this predicate.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
Method Summary | |
public boolean | evaluate(Object object) Evaluates the predicate returning true if the input object is identical to
the stored object. | public static Predicate | getInstance(Object object) Factory to create the identity predicate. | public Object | getValue() Gets the value. |
IdentityPredicate | public IdentityPredicate(Object object)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: object - the object to compare to |
evaluate | public boolean evaluate(Object object)(Code) | | Evaluates the predicate returning true if the input object is identical to
the stored object.
Parameters: object - the input object true if input is the same object as the stored value |
getInstance | public static Predicate getInstance(Object object)(Code) | | Factory to create the identity predicate.
Parameters: object - the object to compare to the predicate throws: IllegalArgumentException - if the predicate is null |
getValue | public Object getValue()(Code) | | Gets the value.
the value since: Commons Collections 3.1 |
|
|
|