|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jzos.fields.FloatDisplayField
public class FloatDisplayField
A character floating point representation Field
with double accessors.
In Cobol, refered to as "External Float".
Constructor Summary | |
---|---|
FloatDisplayField(int offset,
int precision,
int scale,
boolean mantSign,
boolean expSign,
boolean impliedDecimal)
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 a double from the given byte array buffer, at the offset of this field. |
double |
getDouble(byte[] buffer,
int bufOffset)
Return a 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 value into the given byte array buffer, at the offset of this field. |
void |
putDouble(double value,
byte[] buffer,
int bufOffset)
Put a double 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 FloatDisplayField(int offset, int precision, int scale, boolean mantSign, boolean expSign, boolean impliedDecimal)
offset
- int the offset of this fieldprecision
- in the number of decimal degits of precisionscale
- the number of implied decimal digits to the right of the decimal pointmantSign
- true if the '+' character is present for positive mantissa values.
A minus character '-' is always present for negative values.expSign
- true if the '+' character is present for positive exponent values
A minus character '-' is always present for negative values.impliedDecimal
- true if the decimal point is not explicitMethod Detail |
---|
public double getDouble(byte[] buffer)
getDouble
in interface DoubleAccessor
buffer
- the byte array
public double getDouble(byte[] buffer, int bufOffset)
getDouble
in interface DoubleAccessor
buffer
- the byte arraybufOffset
- the additional offset into the byte array
public void putDouble(double value, byte[] buffer)
putDouble
in interface DoubleAccessor
value
- the double valuebuffer
- the byte array
java.lang.IllegalArgumentException
- if the value is Infinity or NaNpublic void putDouble(double value, byte[] buffer, int bufOffset)
putDouble
in interface DoubleAccessor
value
- the double valuebuffer
- the byte arraybufOffset
- the additional offset into the byte array
java.lang.IllegalArgumentException
- if the value is Infinity or NaNpublic int getByteLength()
Field
getByteLength
in interface Field
Field.getByteLength()
public int getOffset()
Field
getOffset
in interface Field
Field.getOffset()
public void setOffset(int offset)
setOffset
in interface Field
Field.setOffset(int)
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 |