|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.XObject
edu.neu.ccs.XNumber
edu.neu.ccs.XDouble
edu.neu.ccs.HexXDouble
Class HexXDouble extends XDouble
by replacing the three methods:
fromStringData,
toStringData,
and toString,
to use hexadecimal digits rather than decimal digits.
| Field Summary |
| Fields inherited from class edu.neu.ccs.XDouble |
|
| Fields inherited from class edu.neu.ccs.XObject |
changeAdapter, VALUE |
| Constructor Summary | |
HexXDouble()
Constructs a wrapper for the default double value. |
|
HexXDouble(double x)
Constructs a wrapper for the given double value. |
|
HexXDouble(String s)
Constructs a wrapper for the byte value whose state information is encapsulated in the given hexadecimal String data
of length exactly 16. |
|
| Method Summary | |
void |
fromStringData(String s)
Sets the state of this object using information contained in the given hexadecimal String of length exactly 16. |
String |
toString()
Returns the same String as toStringData. |
String |
toStringData()
Returns a hexadecimal String encapsulation of this object
that contains the information needed to set the state of this object at a
later time. |
| Methods inherited from class edu.neu.ccs.XDouble |
byteValue, doubleValue, equals, floatValue, getValue, hashCode, intValue, isFinite, isFinite, isInfinite, isInfinite, isNaN, isNaN, longValue, parseDouble, setValue, shortValue, toPrimitiveArray, toXArray |
| Methods inherited from class edu.neu.ccs.XObject |
addPropertyChangeListener, addPropertyChangeListener, formatErrorMessage, removePropertyChangeListener, removePropertyChangeListener, toStringArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HexXDouble()
double value.
HexXDouble(double),
HexXDouble(String)public HexXDouble(double x)
double value.
x - the value to be wrappedHexXDouble(),
HexXDouble(String)
public HexXDouble(String s)
throws ParseException
String data
of length exactly 16.
s - a hexadecimal String representation of the
desired value
ParseException - if s is not hexadecimal with exactly 16 digitsHexXDouble(),
HexXDouble(double),
fromStringData(String)| Method Detail |
public void fromStringData(String s)
throws ParseException
Sets the state of this object using information contained in the
given hexadecimal String of length exactly 16.
Uses Hex.hexToDouble internally.
fromStringData in interface StringablefromStringData in class XDoubles - a hexadecimal String representation of the
desired value
ParseException - if s is not hexadecimal with exactly 16 digitsHex.hexToDouble(String)public String toStringData()
Returns a hexadecimal String encapsulation of this object
that contains the information needed to set the state of this object at a
later time.
Uses Hex.doubleToHex internally.
toStringData in interface StringabletoStringData in class XDoubleString encapsulation of this objectHex.doubleToHex(double)public String toString()
Returns the same String as toStringData.
toString in class XDoubleString encapsulation of this objecttoStringData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||