org.apache.commons.collections.functors
public final class UniquePredicate 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 | |
---|---|
UniquePredicate()
Constructor that performs no validation.
|
Method Summary | |
---|---|
boolean | evaluate(Object object)
Evaluates the predicate returning true if the input object hasn't been
received yet.
|
static Predicate | getInstance()
Factory to create the predicate.
|
getInstance
if you want that.Parameters: object the input object
Returns: true if this is the first time the object is seen
Returns: the predicate
Throws: IllegalArgumentException if the predicate is null