|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.collections.functors.NotPredicate
public final class NotPredicate
Predicate implementation that returns the opposite of the decorated predicate.
Constructor Summary | |
---|---|
NotPredicate(Predicate predicate)
Constructor that performs no validation. |
Method Summary | |
---|---|
boolean |
evaluate(java.lang.Object object)
Evaluates the predicate returning the opposite to the stored predicate. |
static Predicate |
getInstance(Predicate predicate)
Factory to create the not predicate. |
Predicate[] |
getPredicates()
Gets the predicate being decorated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotPredicate(Predicate predicate)
getInstance
if you want that.
predicate
- the predicate to call after the null checkMethod Detail |
---|
public static Predicate getInstance(Predicate predicate)
predicate
- the predicate to decorate, not null
java.lang.IllegalArgumentException
- if the predicate is nullpublic boolean evaluate(java.lang.Object object)
evaluate
in interface Predicate
object
- the input object
public Predicate[] getPredicates()
getPredicates
in interface PredicateDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |