public final class NotNullPredicate<T> extends java.lang.Object implements Predicate<T>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Predicate<java.lang.Object> |
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 final Predicate<java.lang.Object> INSTANCE
public static <T> Predicate<T> notNullPredicate()
T
- the type that the predicate queriesCopyright © 2001-2013. All Rights Reserved.