Top Description Fields Constructors Methods
org.apache.commons.collections4.functors

public final Class NullPredicate<T>

extends Object
implements Predicate<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.apache.commons.collections4.Predicate
Imports
java.io.Serializable, org.apache.commons.collections4.Predicate

Predicate implementation that returns true if the input is null.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Predicate<T>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
NullPredicate()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if input is null
evaluate
(final T
the input object
object
)

Implements org.apache.commons.collections4.Predicate.evaluate.

Evaluates the predicate returning true if the input is null.
public static <
the type that the predicate queries
T
>
Predicate<T>

Returns:

the singleton instance
nullPredicate
()

Factory returning the singleton instance.

private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Predicate<T> INSTANCE

Singleton predicate instance

Annotations
@SuppressWarnings:rawtypes
serialVersionUIDback to summary
private static final long serialVersionUID

Serial version UID

Constructor Detail

NullPredicateback to summary
private NullPredicate()

Restricted constructor.

Method Detail

evaluateback to summary
public boolean evaluate(final T object)

Implements org.apache.commons.collections4.Predicate.evaluate.

Evaluates the predicate returning true if the input is null.

Parameters
object:T

the input object

Returns:boolean

true if input is null

Annotations
@Override
nullPredicateback to summary
public static <T> Predicate<T> nullPredicate()

Factory returning the singleton instance.

Parameters
<T>
the type that the predicate queries
Returns:Predicate<T>

the singleton instance

Since
3.1
readResolveback to summary
private Object readResolve()