|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jzos.fields.PackedDecimalAsBigIntegerField
public class PackedDecimalAsBigIntegerField
A packed decimal Field up to 31 digits with BigInteger accessors.
| Constructor Summary | |
|---|---|
PackedDecimalAsBigIntegerField(int offset,
int precision,
int scale,
boolean signed)
Construct an instance |
|
| Method Summary | |
|---|---|
boolean |
equals(java.math.BigInteger a,
java.math.BigInteger b)
Compare two BigInteger instances, possibly null, for equality. |
java.math.BigInteger |
getBigInteger(byte[] buffer)
Answer a BigInteger value from the given byte array buffer, at the offset of this field. |
java.math.BigInteger |
getBigInteger(byte[] buffer,
int bufOffset)
Answer a BigInteger value from the given byte array buffer, at the bufOffset + offset of this field. |
int |
getByteLength()
Answer the length of the field described by the receiver |
int |
getOffset()
Answer the offset of this field into some array of bytes |
int |
getPrecision()
Answer the number of decimal digits of precision. |
int |
getScale()
|
boolean |
isSigned()
|
void |
putBigInteger(java.math.BigInteger value,
byte[] buffer)
Put a BigInteger value into the given byte array buffer, at the offset of this field. |
void |
putBigInteger(java.math.BigInteger value,
byte[] buffer,
int bufOffset)
Put a BigInteger value into the given byte array buffer, at the bufOffset + offset of this field. |
void |
setOffset(int offset)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackedDecimalAsBigIntegerField(int offset,
int precision,
int scale,
boolean signed)
offset - position of this fieldprecision - total number of digits <= 31scale - zero or a negative number indicating implied extra digits to the left of the decimal pointsigned - if true the last nibble is a sign| Method Detail |
|---|
public int getByteLength()
getByteLength in interface Fieldpublic int getOffset()
getOffset in interface Fieldpublic void setOffset(int offset)
setOffset in interface FieldgetOffset()public int getPrecision()
public java.math.BigInteger getBigInteger(byte[] buffer)
getBigInteger in interface BigIntegerAccessorbuffer - the byte array
public java.math.BigInteger getBigInteger(byte[] buffer,
int bufOffset)
getBigInteger in interface BigIntegerAccessorbuffer - the byte arraybufOffset - the additional offset into the byte array
public void putBigInteger(java.math.BigInteger value,
byte[] buffer)
throws java.lang.IllegalArgumentException
putBigInteger in interface BigIntegerAccessorvalue - the BigInteger valuebuffer - the byte array
java.lang.IllegalArgumentException - if the value is out of range
public void putBigInteger(java.math.BigInteger value,
byte[] buffer,
int bufOffset)
throws java.lang.IllegalArgumentException
putBigInteger in interface BigIntegerAccessorvalue - the BigInteger valuebuffer - the byte arraybufOffset - the additional offset into the byte array
java.lang.IllegalArgumentException - if the value is out of range
public boolean equals(java.math.BigInteger a,
java.math.BigInteger b)
a - BigIntegerb - BigInteger
public int getScale()
public boolean isSigned()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||