com.veromodo.tempo.filters.rules
Class NotPredicate<T>

java.lang.Object
  extended by com.veromodo.tempo.filters.rules.NotPredicate<T>
Type Parameters:
T - the type of objects which the internal predicate works on
All Implemented Interfaces:
SemanticPredicate<T>

public class NotPredicate<T>
extends java.lang.Object
implements SemanticPredicate<T>

Defines a NOT of a semantic predicate

See Also:
SemanticPredicate

Constructor Summary
NotPredicate(SemanticPredicate<T> pred)
           
 
Method Summary
 boolean eval(T n)
          evaluates the object n.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotPredicate

public NotPredicate(SemanticPredicate<T> pred)
Method Detail

eval

public boolean eval(T n)
Description copied from interface: SemanticPredicate
evaluates the object n. Returns true if the object matches the critera, false otherwise. Reports errors if nessisary.

Specified by:
eval in interface SemanticPredicate<T>
Parameters:
n - an object to be checked.
Returns:
true if the object matches.