public final class NotPredicate<T> extends Objectimplements PredicateDecorator <T>, Serializable
| Constructor and Description |
|---|
NotPredicate(Predicate
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(T object)
Evaluates the predicate returning the opposite to the stored predicate.
|
Predicate |
getPredicates()
Gets the predicate being decorated.
|
static <T> Predicate |
notPredicate(Predicate
Factory to create the not predicate.
|
public static <T> Predicate<T> notPredicate(Predicate <? super T> predicate)
T - the type that the predicate queries
predicate - the predicate to decorate, not null
NullPointerException - if the predicate is null
public boolean evaluate(T object)
public Predicate<? super T>[] getPredicates()
getPredicates in interface
PredicateDecorator<T>