public final class NotNullPredicate<T> extends Object implements Predicate<T>, Serializable
Modifier and Type | Field and Description |
---|---|
static Predicate |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(T object)
Evaluates the predicate returning true if the object does not equal null.
|
static <T> Predicate<T> |
notNullPredicate()
Factory returning the singleton instance.
|
public static <T> Predicate<T> notNullPredicate()
T
- the type that the predicate queriesCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.