|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.sys.Decimal
A Decimal is a mutable version of BigDecimal. It contains a BigDecimal within itself which you can access and replace with a new value if needed.
| Constructor Summary | |
Decimal()
|
|
Decimal(BigDecimal bd)
|
|
Decimal(double value)
|
|
Decimal(String str)
|
|
| Method Summary | |
int |
compareTo(Object other)
Compare this object with another. |
void |
copyFrom(Object other)
Copy all appropriate data from another object. |
int |
decodeBytes(byte[] source,
int offset,
int length)
This requests the Object to decode itself from a stream of bytes. |
int |
encodeBytes(ByteArray dest)
This requests the Object to encode itself as a stream of bytes which is appended to the destination ByteArray. |
void |
fromString(String value)
|
BigDecimal |
getBigDecimal()
|
Object |
getCopy()
Return a copy of this object. |
void |
setBigDecimal(BigDecimal bd)
|
Decimal |
setDouble(double value)
|
String |
toString()
Return a String representation of this object. |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, copied, equals, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode |
| Constructor Detail |
public Decimal()
public Decimal(double value)
public Decimal(BigDecimal bd)
public Decimal(String str)
| Method Detail |
public Object getCopy()
Copyable
getCopy in interface CopyablegetCopy in class DataObjectpublic void copyFrom(Object other)
DataUnit
copyFrom in interface DataUnitcopyFrom in class DataObjectpublic int compareTo(Object other)
Comparable
compareTo in interface ComparablecompareTo in class DataObjectpublic String toString()
Object
toString in interface StringabletoString in class Objectpublic void fromString(String value)
fromString in interface Stringablepublic BigDecimal getBigDecimal()
public void setBigDecimal(BigDecimal bd)
public int encodeBytes(ByteArray dest)
ByteEncodable
encodeBytes in interface ByteEncodabledest - The destination ByteArray, or null to determine the number of bytes needed to encode.
public int decodeBytes(byte[] source,
int offset,
int length)
ByteDecodable
decodeBytes in interface ByteDecodablesource - The source of the encoded bytes.offset - Where the object should start decoding from.length - The number of bytes left starting from startOffsetInSource.
public Decimal setDouble(double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||