org.gcube.contentmanagement.contentmanager.stubs.model.constraints
Class Not<T>
java.lang.Object
org.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint<T>
org.gcube.contentmanagement.contentmanager.stubs.model.constraints.Not<T>
- All Implemented Interfaces:
- java.io.Serializable, Constraint<T>
public class Not<T>
- extends BaseConstraint<T>
Constrains values to not satisfy a given constraint.
- Author:
- Fabio Simeoni (University of Strathclyde)
- See Also:
- Serialized Form
Constructor Summary |
Not(Constraint<T> c)
Creates an instance from one more constraints. |
Method Summary |
boolean |
accepts(T t)
Indicates whether a value satisfies the constraint. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Not
public Not(Constraint<T> c)
- Creates an instance from one more constraints.
accepts
public boolean accepts(T t)
- Description copied from interface:
Constraint
- Indicates whether a value satisfies the constraint.
- Parameters:
t
- the value.
- Returns:
true
if it does, false
otherwise.
toString
public java.lang.String toString()
-
- Overrides:
toString
in class BaseConstraint<T>
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class java.lang.Object