| |
|
| java.lang.Object org.apache.commons.collections.functors.EqualPredicate
EqualPredicate | final public class EqualPredicate implements Predicate,Serializable(Code) | | Predicate implementation that returns true if the input is the same object
as the one stored in this predicate by equals.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
EqualPredicate | public EqualPredicate(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 equals the stored value.
Parameters: object - the input object true if input object equals 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 |
|
|
|