public final class NullIsFalsePredicate<T> extends Objectimplements PredicateDecorator <T>, Serializable
| Constructor and Description |
|---|
NullIsFalsePredicate(Predicate
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(T object)
Evaluates the predicate returning the result of the decorated predicate once a null check is performed.
|
Predicate |
getPredicates()
Gets the predicate being decorated.
|
static <T> Predicate |
nullIsFalsePredicate(Predicate
Factory to create the null false predicate.
|
public static <T> Predicate<T> nullIsFalsePredicate(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>