org.apache.commons.collections.functors
Class NullPredicate
- Predicate, Serializable
public final class NullPredicate
Predicate implementation that returns true if the input is null.
Version:
- Stephen Colebourne
- Commons Collections 3.0
boolean | evaluate(Object object) - Evaluates the predicate returning true if the input is null.
|
static Predicate | getInstance() - Factory returning the singleton instance.
|
INSTANCE
public static final Predicate INSTANCE
Singleton predicate instance
evaluate
public boolean evaluate(Object object)
Evaluates the predicate returning true if the input is null.
- evaluate in interface Predicate
object
- the input object
- true if input is null
getInstance
public static Predicate getInstance()
Factory returning the singleton instance.
- the singleton instance
- Commons Collections 3.1
Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.