java.io.Serializable, Predicate<T>public final class UniquePredicate<T> extends java.lang.Object implements Predicate<T>, java.io.Serializable
| Constructor | Description |
|---|---|
UniquePredicate() |
Constructor that performs no validation.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
evaluate(T object) |
Evaluates the predicate returning true if the input object hasn't been
received yet.
|
static <T> Predicate<T> |
uniquePredicate() |
Factory to create the predicate.
|
public UniquePredicate()
uniquePredicate if you want that.public static <T> Predicate<T> uniquePredicate()
T - the type that the predicate queriesjava.lang.IllegalArgumentException - if the predicate is nullCopyright © 2001-2019 - Apache Software Foundation