|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jniwrapper.Parameter | +--com.jniwrapper.AbstractFloat | +--com.jniwrapper.SingleFloat
Represents float
value and type.
Field Summary | |
static int |
FLOAT_LENGTH
Length of float type in bytes |
Constructor Summary | |
SingleFloat()
Constructs SingleFloat object with zero value |
|
SingleFloat(double f)
Constructs SingleFloat object |
|
SingleFloat(FloatParameter srcVal)
Constructs SingleFloat object |
|
SingleFloat(SingleFloat t)
Constructs a copy of SingleFloat instance |
Method Summary | |
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 floating point value to Java double value |
Methods inherited from class com.jniwrapper.AbstractFloat |
getLength, getValue, read, setValue, toString, write |
Methods inherited from class com.jniwrapper.Parameter |
acceptIOPerformer, asReturnValue, equals, getAlignedLength, getBuffer, getOffset, indent, pop, push, read, setBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FLOAT_LENGTH
float
type in bytes
Constructor Detail |
public SingleFloat()
SingleFloat
object with zero value
public SingleFloat(FloatParameter srcVal)
SingleFloat
object
srcVal
- Source floating-point valuepublic SingleFloat(double f)
SingleFloat
object
f
- Source floating-point valuepublic SingleFloat(SingleFloat t)
SingleFloat
instance
Method Detail |
public java.lang.Object clone()
clone
in class Parameter
protected double convertToDouble(byte[] bytes)
AbstractFloat
double
value
convertToDouble
in class AbstractFloat
protected byte[] convertToBytes(double d)
AbstractFloat
double
value to its native representation
convertToBytes
in class AbstractFloat
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |