org.gcube.data.trees.constraints
Class Not<T>

java.lang.Object
  extended by org.gcube.data.trees.constraints.BaseConstraint<T>
      extended by org.gcube.data.trees.constraints.Not<T>
All Implemented Interfaces:
Serializable, Constraint<T>

public class Not<T>
extends BaseConstraint<T>

Constrains values to not satisfy a given constraint.

Author:
Fabio Simeoni
See Also:
Serialized Form

Constructor Summary
Not(Constraint<T> c)
          Creates an instance from one more constraints.
 
Method Summary
 boolean accepts(T t)
          Returns true if a value satisfies the constraint.
 boolean equals(Object obj)
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Not

public Not(Constraint<T> c)
Creates an instance from one more constraints.

Method Detail

accepts

public boolean accepts(T t)
Description copied from interface: Constraint
Returns true if a value satisfies the constraint.

Parameters:
t - the value.
Returns:
true if the value satisfies the constraint, false if it does not.

toString

public String toString()

Overrides:
toString in class BaseConstraint<T>

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.