org.gcube.contentmanagement.contentmanager.stubs.model.constraints
Class Less

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint<java.lang.Double>
      extended by org.gcube.contentmanagement.contentmanager.stubs.model.constraints.Less
All Implemented Interfaces:
java.io.Serializable, Constraint<java.lang.Double>

public class Less
extends BaseConstraint<java.lang.Double>

Constrains Double values to be strictly smaller than a given one.

Author:
Fabio Simeoni (University of Strathclyde)
See Also:
Serialized Form

Method Summary
 boolean accepts(java.lang.Double t)
          Indicates whether a value satisfies the constraint.
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 double than()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

than

public double than()

accepts

public boolean accepts(java.lang.Double t)
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<java.lang.Double>

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