net.sf.molae.pipe.filter
Class Not<T>
java.lang.Object
net.sf.molae.pipe.basic.ObjectProxy<TypedPredicate<T>>
net.sf.molae.pipe.filter.Not<T>
- All Implemented Interfaces:
- TypedPredicate<T>
public final class Not<T>
- extends ObjectProxy<TypedPredicate<T>>
- implements TypedPredicate<T>
The negation of the base predicate.
Constructor Summary |
Not(TypedPredicate<T> base)
Constructs a new negation of the specified predicate. |
Method Summary |
boolean |
evaluate(T input)
Returns the negation of the evaluation of the input by the base
predicate. |
Not
public Not(TypedPredicate<T> base)
- Constructs a new negation of the specified predicate.
- Parameters:
base
- the base predicate.
- Throws:
NullPointerException
- if the specified object is
null
.
evaluate
public boolean evaluate(T input)
- Returns the negation of the evaluation of the input by the base
predicate.
- Specified by:
evaluate
in interface TypedPredicate<T>
- Parameters:
input
- object to evaluate.
- Returns:
- the negation of the evaluation of the input by the base
predicate