org.gcube.data.trees.constraints
Class Not<T>
java.lang.Object
org.gcube.data.trees.constraints.BaseConstraint<T>
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. |
Not
public Not(Constraint<T> c)
- Creates an instance from one more constraints.
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 © 2012. All Rights Reserved.