|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.commons.collections.functors.NullIsFalsePredicate
Predicate implementation that returns false if the input is null.
| Constructor Summary | |
NullIsFalsePredicate(Predicate predicate)
Constructor that performs no validation. |
|
| Method Summary | |
boolean |
evaluate(Object object)
Return false if the object equals null else call the decorated predicate. |
static Predicate |
getInstance(Predicate predicate)
Factory to create the null false predicate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NullIsFalsePredicate(Predicate predicate)
getInstance if you want that.
predicate - the predicate to call after the null check| Method Detail |
public static Predicate getInstance(Predicate predicate)
predicate - the predicate to decorate, not null
IllegalArgumentException - if the predicate is nullpublic boolean evaluate(Object object)
evaluate in interface Predicateobject - the object to evaluate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||