com.jniwrapper
Class SingleFloat

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.AbstractFloat
          extended by com.jniwrapper.SingleFloat
All Implemented Interfaces:
FloatParameter

public class SingleFloat
extends AbstractFloat

Represents the float value and type.


Field Summary
static int FLOAT_LENGTH
          The length of float type in bytes.
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
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
 
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 a floating-point value to Java double value.
 
Methods inherited from class com.jniwrapper.AbstractFloat
getDebugInfo, getLength, getValue, read, setValue, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
acceptIOPerformer, asReturnValue, dataBufferAssigned, equals, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, hashCode, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FLOAT_LENGTH

public static final int FLOAT_LENGTH
The length of float type in bytes.

Constructor Detail

SingleFloat

public SingleFloat()
Constructs a SingleFloat object with zero value.


SingleFloat

public SingleFloat(FloatParameter srcVal)
Constructs a SingleFloat object.

Parameters:
srcVal - Source floating-point value.

SingleFloat

public SingleFloat(double f)
Constructs a SingleFloat object.

Parameters:
f - Source floating-point value.

SingleFloat

public SingleFloat(SingleFloat t)
Constructs a copy of SingleFloat instance

Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in class Parameter

convertToDouble

protected double convertToDouble(byte[] bytes)
Description copied from class: AbstractFloat
Converts native representation of a floating-point value to Java double value.

Specified by:
convertToDouble in class AbstractFloat

convertToBytes

protected byte[] convertToBytes(double d)
Description copied from class: AbstractFloat
Converts Java double value to its native representation.

Specified by:
convertToBytes in class AbstractFloat