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

public final Class NotNullPredicate<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 not 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
NotNullPredicate()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if not null
evaluate
(final T
the object to evaluate
object
)

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

Evaluates the predicate returning true if the object does not equal null.
public static <
the type that the predicate queries
T
>
Predicate<T>

Returns:

the singleton instance
notNullPredicate
()

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

NotNullPredicateback to summary
private NotNullPredicate()

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 object does not equal null.

Parameters
object:T

the object to evaluate

Returns:boolean

true if not null

Annotations
@Override
notNullPredicateback to summary
public static <T> Predicate<T> notNullPredicate()

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()