|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jzos.fields.IbmFloatField
public class IbmFloatField
An IBM hexadecimal floating point Field with double accessors.
| Field Summary | |
|---|---|
static int |
BYTE_LENGTH
|
| Constructor Summary | |
|---|---|
IbmFloatField(int offset)
Construct an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Float aFloat,
float afloat)
Compare a Float with a double for equality. |
int |
getByteLength()
Answer the length of the field described by the receiver |
float |
getFloat(byte[] buffer)
Return an IEEE (binary) float from the given byte array buffer, at the offset of this field. |
float |
getFloat(byte[] buffer,
int bufOffset)
Return an IEEE (binary) float 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 |
putFloat(float value,
byte[] buffer)
Put a float into the given byte array buffer, at the offset of this field. |
void |
putFloat(float value,
byte[] buffer,
int bufOffset)
Put a float 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
| Constructor Detail |
|---|
public IbmFloatField(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 float getFloat(byte[] buffer)
getFloat in interface FloatAccessorbuffer - the byte array
public float getFloat(byte[] buffer,
int bufOffset)
getFloat in interface FloatAccessorbuffer - the byte arraybufOffset - the additional offset into the byte array
public void putFloat(float value,
byte[] buffer)
putFloat in interface FloatAccessorvalue - the float valuebuffer - the byte array
public void putFloat(float value,
byte[] buffer,
int bufOffset)
putFloat in interface FloatAccessorvalue - the float valuebuffer - the byte arraybufOffset - the additional offset into the byte array
public boolean equals(java.lang.Float aFloat,
float afloat)
aFloat - possibly nullafloat -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||