public class SingleFloat extends AbstractFloat
float value and type.
| Modifier and Type | Field and Description |
|---|---|
static int |
FLOAT_LENGTH
The length of
float type in bytes. |
LICENSE_TYPE, V| Constructor and Description |
|---|
SingleFloat()
Constructs a
SingleFloat object with zero value. |
SingleFloat(double f)
Constructs a
SingleFloat object. |
SingleFloat(FloatParameter srcVal)
Constructs a
SingleFloat object. |
SingleFloat(SingleFloat t)
Constructs a copy of
SingleFloat instance |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
protected byte[] |
convertToBytes(double d)
Converts Java
double value to its native representation. |
protected double |
convertToDouble(byte[] bytes)
Converts native representation of a floating-point value to Java
double value. |
getDebugInfo, getLength, getValue, read, setValue, toString, writeacceptIOPerformer, asReturnValue, dataBufferAssigned, equals, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, hashCode, indent, pop, push, read, read, setDataBuffer, toByteArray, writepublic SingleFloat()
SingleFloat object with zero value.public SingleFloat(FloatParameter srcVal)
SingleFloat object.srcVal - Source floating-point value.public SingleFloat(double f)
SingleFloat object.f - Source floating-point value.public SingleFloat(SingleFloat t)
SingleFloat instanceprotected double convertToDouble(byte[] bytes)
AbstractFloatdouble value.convertToDouble in class AbstractFloatprotected byte[] convertToBytes(double d)
AbstractFloatdouble value to its native representation.convertToBytes in class AbstractFloat