public final class NotPredicate extends java.lang.Object implements Predicate, PredicateDecorator, java.io.Serializable
Constructor and Description |
---|
NotPredicate(Predicate predicate)
Constructor that performs no validation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.Object object)
Evaluates the predicate returning the opposite to the stored predicate.
|
static Predicate |
getInstance(Predicate predicate)
Factory to create the not predicate.
|
Predicate[] |
getPredicates()
Gets the predicate being decorated.
|
public NotPredicate(Predicate predicate)
getInstance
if you want that.predicate
- the predicate to call after the null checkpublic static Predicate getInstance(Predicate predicate)
predicate
- the predicate to decorate, not nulljava.lang.IllegalArgumentException
- if the predicate is nullpublic boolean evaluate(java.lang.Object object)
public Predicate[] getPredicates()
getPredicates
in interface PredicateDecorator
Copyright © 2010 - 2020 Adobe. All Rights Reserved