|
||||||||
| 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.LongRange
public class LongRange
A range of non-negative longs.
| Constructor Summary | |
|---|---|
LongRange(long value)
Creates a new range of non-negative longs. |
|
LongRange(java.lang.Long value)
Creates a new range of non-negative longs. |
|
LongRange(long start,
long end)
Creates a new range of non-negative longs. |
|
LongRange(long start,
java.lang.Long end)
Creates a new range of non-negative longs. |
|
LongRange(java.lang.Long start,
long end)
Creates a new range of non-negative longs. |
|
LongRange(java.lang.Long start,
java.lang.Long end)
Creates a new range of non-negative longs. |
|
| Method Summary | |
|---|---|
int |
compareTo(LongRange other)
Compares this instance with another. |
boolean |
equals(java.lang.Object obj)
Returns true if this object equals some other object. |
java.lang.Long |
getEnd()
Gets the end of the range. |
java.lang.Long |
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 LongRange(long value)
throws ModelException
value - Start and end of range.
ModelException -
public LongRange(java.lang.Long value)
throws ModelException
value - Start and end of range, or null if none.
ModelException -
public LongRange(long start,
long end)
throws ModelException
start - Start of range.end - End of range.
ModelException -
public LongRange(java.lang.Long start,
long end)
throws ModelException
start - Start of range, or null if none.end - End of range.
ModelException -
public LongRange(long start,
java.lang.Long end)
throws ModelException
start - Start of range.end - End of range, or null if none.
ModelException -
public LongRange(java.lang.Long start,
java.lang.Long 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.Long getStart()
public java.lang.Long 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(LongRange other)
Long ranges are ordered first by start, then by end, with null less than all non-nulls.
compareTo in interface java.lang.Comparable<LongRange>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||