public final class NullIsExceptionPredicate<T> extends Objectimplements PredicateDecorator <T>, Serializable
| Constructor and Description |
|---|
NullIsExceptionPredicate(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 |
nullIsExceptionPredicate(Predicate
Factory to create the null exception predicate.
|
public static <T> Predicate<T> nullIsExceptionPredicate(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)
evaluate in interface
Predicate<T>
object - the input object
FunctorException - if input is null
public Predicate<? super T>[] getPredicates()
getPredicates in interface
PredicateDecorator<T>