|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.collections.functors.UniquePredicate
public final class UniquePredicate
Predicate implementation that returns true the first time an object is passed into the predicate.
Constructor Summary | |
---|---|
UniquePredicate()
Constructor that performs no validation. |
Method Summary | |
---|---|
boolean |
evaluate(java.lang.Object object)
Evaluates the predicate returning true if the input object hasn't been received yet. |
static Predicate |
getInstance()
Factory to create the predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniquePredicate()
getInstance
if you want that.
Method Detail |
---|
public static Predicate getInstance()
java.lang.IllegalArgumentException
- if the predicate is nullpublic boolean evaluate(java.lang.Object object)
evaluate
in interface Predicate
object
- the input object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |