⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.functors

Class NullPredicate

java.lang.Object
|
+--org.apache.commons.collections.functors.NullPredicate

All Implemented Interfaces:
Predicate, Serializable


public final class NullPredicate
extends java.lang.Object
implements Predicate, Serializable

Predicate implementation that returns true if the input is null.
Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Field Summary

static Predicate

INSTANCE

Singleton predicate instance

Method Summary

boolean

evaluate(Object object)

Return true if the object equals null.

Field Details

INSTANCE

public static final Predicate INSTANCE

Singleton predicate instance

Method Details

evaluate

public boolean evaluate(Object object)

Return true if the object equals null.

Parameters:
object