public class Bcd
extends java.lang.Number
double, int or String.| Constructor and Description |
|---|
Bcd(byte[] bcdBytes)
Constructs a
Bcd from the given bytes. |
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue() |
float |
floatValue() |
byte[] |
getBytes() |
int |
intValue() |
long |
longValue() |
java.lang.String |
toString() |
public Bcd(byte[] bcdBytes)
Bcd from the given bytes. The constructed Bcd will use the given byte array for
internal storage of its value. It is therefore recommended not to change the byte array after construction.bcdBytes - the byte array to be used for construction of the Bcd.public byte[] getBytes()
public java.lang.String toString()
toString in class java.lang.Objectpublic double doubleValue()
doubleValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Number