java.io.Serializable
, Predicate<T>
public final class NullPredicate<T> extends java.lang.Object implements Predicate<T>, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
static Predicate |
INSTANCE |
Singleton predicate instance
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
evaluate(T object) |
Evaluates the predicate returning true if the input is null.
|
static <T> Predicate<T> |
nullPredicate() |
Factory returning the singleton instance.
|
public static final Predicate INSTANCE
public static <T> Predicate<T> nullPredicate()
T
- the type that the predicate queriesCopyright © 2001-2019 - Apache Software Foundation