|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jzos.fields.IbmDoubleField
public class IbmDoubleField
An extended IBM hexadecimal floating point Field with double accessors.
| Field Summary | |
|---|---|
static long |
ALL_NON_SIGN_BITS
|
static int |
BFP_BIAS
|
static long |
BFP_EXP_MASK
|
static long |
BFP_FRACTION_HON
|
static long |
BFP_FRACTION_IMPLIED_HOB
|
static int |
BFP_FRACTION_LENGTH
|
static long |
BFP_FRACTION_MASK
|
static int |
BFP_INF_EXP
|
static int |
BYTE_LENGTH
|
static int |
HFP_BIAS
|
static long |
HFP_EXP_MASK
|
static int |
HFP_FRACTION_LENGTH
|
static long |
HFP_FRACTION_MASK
|
static int |
HFP_MAX_EXP
|
static long |
SIGN_BIT
|
| Constructor Summary | |
|---|---|
IbmDoubleField(int offset)
Construct an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Double aDouble,
double adouble)
Compare a Double with a double for equality. |
int |
getByteLength()
Answer the length of the field described by the receiver |
double |
getDouble(byte[] buffer)
Return an IEEE (binary) double from the given byte array buffer, at the offset of this field. |
double |
getDouble(byte[] buffer,
int bufOffset)
Return an IEEE (binary) double from the given byte array buffer, at the bufOffset + offset of this field. |
int |
getOffset()
Answer the offset of this field into some array of bytes |
void |
putDouble(double value,
byte[] buffer)
Put a double into the given byte array buffer, at the offset of this field. |
void |
putDouble(double value,
byte[] buffer,
int bufOffset)
Put a double 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 |
| Field Detail |
|---|
public static final int BYTE_LENGTH
public static final long SIGN_BIT
public static final long ALL_NON_SIGN_BITS
public static final long HFP_FRACTION_MASK
public static final long BFP_FRACTION_MASK
public static final long BFP_FRACTION_IMPLIED_HOB
public static final long BFP_FRACTION_HON
public static final long HFP_EXP_MASK
public static final long BFP_EXP_MASK
public static final int HFP_FRACTION_LENGTH
public static final int BFP_FRACTION_LENGTH
public static final int HFP_BIAS
public static final int HFP_MAX_EXP
public static final int BFP_BIAS
public static final int BFP_INF_EXP
| Constructor Detail |
|---|
public IbmDoubleField(int offset)
offset - int the offset in some byte array to the start of this field.| Method Detail |
|---|
public int getByteLength()
Field
getByteLength in interface FieldField.getByteLength()public int getOffset()
Field
getOffset in interface FieldField.getOffset()public void setOffset(int offset)
setOffset in interface FieldField.setOffset(int)public double getDouble(byte[] buffer)
getDouble in interface DoubleAccessorbuffer - the byte array
public double getDouble(byte[] buffer,
int bufOffset)
getDouble in interface DoubleAccessorbuffer - the byte arraybufOffset - the additional offset into the byte array
public void putDouble(double value,
byte[] buffer)
putDouble in interface DoubleAccessorvalue - the float valuebuffer - the byte array
java.lang.IllegalArgumentException - if the resulting hexadecimal exponent is
too large to fit into the IBM representation.
public void putDouble(double value,
byte[] buffer,
int bufOffset)
putDouble in interface DoubleAccessorvalue - the float valuebuffer - the byte arraybufOffset - the additional offset into the byte array
java.lang.IllegalArgumentException - if the resulting hexadecimal exponent is
too large to fit into the IBM representation.
public boolean equals(java.lang.Double aDouble,
double adouble)
aDouble - possibly nulladouble -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||