public final class Range
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
Range()
Constructs a new range with undefined bounds
|
Range(double min,
double max)
Constructs a new range with the given bounds.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
void |
exportState(java.lang.String name,
ResultWriter writer) |
double |
getMaximum()
Returns the upper bound of this range.
|
double |
getMinimum()
Returns the lower bound of this range.
|
int |
hashCode() |
void |
importState(ResultReader reader) |
boolean |
isDefined()
Returns whether this is a defined range.
|
void |
joinStateWithImportState(ResultReader reader) |
void |
reset()
Resets this range to undefined bounds.
|
java.lang.String |
toString() |
void |
update(double value)
Updates the bounds of this range.
|
public Range()
public Range(double min, double max)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void exportState(java.lang.String name, ResultWriter writer) throws ResultException
ResultException
public void importState(ResultReader reader) throws ResultException
ResultException
public void joinStateWithImportState(ResultReader reader)
public void update(double value)
public void reset()
public double getMaximum()
public double getMinimum()
public boolean isDefined()