|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.northwestern.at.monk.model.NumericRange
edu.northwestern.at.monk.model.DoubleRange
public class DoubleRange
A range of non-negative doubles.
| Constructor Summary | |
|---|---|
DoubleRange(double value)
Creates a new range of non-negative doubles. |
|
DoubleRange(java.lang.Double value)
Creates a new range of non-negative doubles. |
|
DoubleRange(double start,
double end)
Creates a new range of non-negative doubles. |
|
DoubleRange(double start,
java.lang.Double end)
Creates a new range of non-negative doubles. |
|
DoubleRange(java.lang.Double start,
double end)
Creates a new range of non-negative doubles. |
|
DoubleRange(java.lang.Double start,
java.lang.Double end)
Creates a new range of non-negative doubles. |
|
| Method Summary | |
|---|---|
int |
compareTo(DoubleRange other)
Compares this instance with another. |
boolean |
equals(java.lang.Object obj)
Returns true if this object equals some other object. |
java.lang.Double |
getEnd()
Gets the end of the range. |
java.lang.Double |
getStart()
Gets the start of the range. |
int |
hashCode()
Returns a hash code for this object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleRange(double value)
throws ModelException
value - Start and end of range.
ModelException -
public DoubleRange(java.lang.Double value)
throws ModelException
value - Start and end of range, or null if none.
ModelException -
public DoubleRange(double start,
double end)
throws ModelException
start - Start of range.end - End of range.
ModelException -
public DoubleRange(java.lang.Double start,
double end)
throws ModelException
start - Start of range, or null if none.end - End of range.
ModelException -
public DoubleRange(double start,
java.lang.Double end)
throws ModelException
start - Start of range.end - End of range, or null if none.
ModelException -
public DoubleRange(java.lang.Double start,
java.lang.Double end)
throws ModelException
start - Start of range, or null if none.end - End of range, or null if none.
ModelException - | Method Detail |
|---|
public java.lang.Double getStart()
public java.lang.Double getEnd()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object.
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(DoubleRange other)
Double ranges are ordered first by start, then by end.
compareTo in interface java.lang.Comparable<DoubleRange>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||