|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.collections15.functors.predicate.NullPredicate<E>
public final class NullPredicate<E>
Predicate
implementation that only returns true
if
the input is null
.
Constructor Summary | |
---|---|
protected |
NullPredicate()
creates a new instance. |
Method Summary | ||
---|---|---|
boolean |
evaluate(E object)
Evaluates the Predicate returning true only if
the input is null . |
|
static
|
getInstance()
Returns a Predicate that evaluates to true only
if the input is null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NullPredicate()
Method Detail |
---|
public static <T> NullPredicate<T> getInstance()
Predicate
that evaluates to true
only
if the input is null
.
Predicate
that evaluates to true
only
if the input is null
.public boolean evaluate(E object)
Predicate
returning true
only if
the input is null
.
evaluate
in interface Predicate<E>
object
- The input object to evaluate.
true
if the input is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |