Class NullPredicate<T>
java.lang.Object
org.apache.commons.collections4.functors.NullPredicate<T>
- All Implemented Interfaces:
Serializable
,Predicate<T>
,Predicate<T>
Predicate implementation that returns true if the input is null.
- Since:
- 3.0
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates the predicate returning true if the input is null.static <T> Predicate<T>
Factory returning the singleton instance.
-
Field Details
-
INSTANCE
Singleton predicate instance
-
-
Method Details
-
nullPredicate
Factory returning the singleton instance.- Type Parameters:
T
- the type that the predicate queries- Returns:
- the singleton instance
- Since:
- 3.1
-
evaluate
Evaluates the predicate returning true if the input is null.
-