|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.locomotive.util.data.NumberKey
this class provides a comparison key for most primitive data types
Field Summary | |
double |
key
|
Constructor Summary | |
NumberKey(byte value)
Constructor creates a new NumberKey from a byte |
|
NumberKey(char value)
Constructor creates a new NumberKey from a char |
|
NumberKey(double value)
Constructor creates a new NumberKey from a double |
|
NumberKey(float value)
Constructor creates a new NumberKey from a float |
|
NumberKey(int value)
Constructor creates a new NumberKey from a int |
|
NumberKey(long value)
Constructor creates a new NumberKey from a long |
|
NumberKey(java.lang.Number value)
Constructor creates a new NumberKey from a Number object |
|
NumberKey(short value)
Constructor creates a new NumberKey from a short |
Method Summary | |
int |
compare(ComparisonKey value)
Compare myself to another object |
java.lang.String |
toString()
to assure a decent string representation of the comparisonKey |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public double key
Constructor Detail |
public NumberKey(double value)
value
- the number to be usedpublic NumberKey(char value)
value
- the number to be usedpublic NumberKey(byte value)
value
- the number to be usedpublic NumberKey(short value)
value
- the number to be usedpublic NumberKey(int value)
value
- the number to be usedpublic NumberKey(long value)
value
- the number to be usedpublic NumberKey(float value)
value
- the number to be usedpublic NumberKey(java.lang.Number value)
value
- the number to be usedMethod Detail |
public int compare(ComparisonKey value) throws ComparisonKeyException
key
- - the key to which this object is to be
comparedpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |