org.gcube.data.trees.constraints
Class Less

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

public class Less
extends BaseConstraint<Double>

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

Author:
Fabio Simeoni
See Also:
Serialized Form

Constructor Summary
Less(double d)
          Creates an instance from a given value.
 
Method Summary
 boolean accepts(Double t)
          Returns true if a value satisfies the constraint.
 boolean equals(Object obj)
          
 int hashCode()
          
 double than()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Less

public Less(double d)
Creates an instance from a given value.

Parameters:
d - the value.
Method Detail

than

public double than()

accepts

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

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.