org.apache.commons.collections.functors
public final class UniquePredicate extends Object implements Predicate, Serializable
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
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