public class PackedBigDecimalP14Field extends PackedBigDecimalField
| Constructor and Description |
|---|
PackedBigDecimalP14Field(int offset,
int scale) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getBigDecimal(byte[] buffer)
Answer a BigDecimal from the given byte array buffer,
at the offset of this field.
|
java.math.BigDecimal |
getBigDecimal(byte[] buffer,
int bufOffset)
Answer a BigDecimal from the given byte array buffer,
at the bufOffset + offset of this field.
|
void |
putBigDecimal(java.math.BigDecimal value,
byte[] buffer)
Put a BigDecimal into the given byte array buffer,
at the offset of this field.
|
void |
putBigDecimal(java.math.BigDecimal value,
byte[] buffer,
int bufOffset)
Put a BigDecimal into the given byte array buffer,
at the bufOffset + offset of this field.
|
equals, getByteLength, getOffset, getPrecision, getScale, isSigned, setOffsetpublic java.math.BigDecimal getBigDecimal(byte[] buffer,
int bufOffset)
throws java.lang.IllegalArgumentException
PackedDecimalAsBigDecimalFieldgetBigDecimal in interface BigDecimalAccessorgetBigDecimal in class PackedBigDecimalFieldbuffer - the byte arraybufOffset - the additional offset into the byte arrayjava.lang.IllegalArgumentException - if the data has a invalid sign nibblepublic java.math.BigDecimal getBigDecimal(byte[] buffer)
throws java.lang.IllegalArgumentException
PackedDecimalAsBigDecimalFieldgetBigDecimal in interface BigDecimalAccessorgetBigDecimal in class PackedBigDecimalFieldbuffer - the byte arrayjava.lang.IllegalArgumentException - if the data has a invalid sign nibblepublic void putBigDecimal(java.math.BigDecimal value,
byte[] buffer,
int bufOffset)
throws java.lang.IllegalArgumentException
PackedDecimalAsBigDecimalFieldputBigDecimal in interface BigDecimalAccessorputBigDecimal in class PackedBigDecimalFieldvalue - the BigDecimal valuebuffer - the byte arraybufOffset - the additional offset into the byte arrayjava.lang.IllegalArgumentException - if the value is out of rangepublic void putBigDecimal(java.math.BigDecimal value,
byte[] buffer)
throws java.lang.IllegalArgumentException
PackedDecimalAsBigDecimalFieldputBigDecimal in interface BigDecimalAccessorputBigDecimal in class PackedBigDecimalFieldvalue - the BigDecimal valuebuffer - the byte arrayjava.lang.IllegalArgumentException - if the value is out of range