org.gcube.data.trees.constraints
Class More

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

public class More
extends BaseConstraint<Double>

Constraints values of type Double to be strictly greater than a given one.

Author:
Fabio Simeoni
See Also:
Serialized Form

Constructor Summary
More(double n)
          Creates a new instance with a double 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

More

public More(double n)
Creates a new instance with a double value.

Parameters:
n - 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.