|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections15.functors.UniquePredicate<T>
public final class UniquePredicate<T>
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(T object)
Evaluates the predicate returning true if the input object hasn't been received yet. |
|
static
|
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 <T> Predicate<T> getInstance()
IllegalArgumentException - if the predicate is nullpublic boolean evaluate(T object)
evaluate in interface Predicate<T>object - the input object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||