| java.lang.Object org.apache.commons.collections.functors.UniquePredicate
UniquePredicate | final public class UniquePredicate implements Predicate,Serializable(Code) | | Predicate implementation that returns true the first time an object is
passed into the predicate.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
Constructor Summary | |
public | UniquePredicate() Constructor that performs no validation. |
Method Summary | |
public boolean | evaluate(Object object) Evaluates the predicate returning true if the input object hasn't been
received yet. | public static Predicate | getInstance() Factory to create the predicate. |
UniquePredicate | public UniquePredicate()(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
|
evaluate | public boolean evaluate(Object object)(Code) | | Evaluates the predicate returning true if the input object hasn't been
received yet.
Parameters: object - the input object true if this is the first time the object is seen |
|
|