|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.functors.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(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()
IllegalArgumentException - if the predicate is nullpublic boolean evaluate(Object object)
evaluate in interface Predicateobject - the input object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||