net.sf.molae.pipe.filter
Class Not<T>

java.lang.Object
  extended by net.sf.molae.pipe.basic.ObjectProxy<TypedPredicate<T>>
      extended by 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.
 
Methods inherited from class net.sf.molae.pipe.basic.ObjectProxy
assertNotNull, equals, getBase, hashCode, toString, toVerboseString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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