com.jniwrapper
Class DoubleFloat

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.AbstractFloat
              |
              +--com.jniwrapper.DoubleFloat
All Implemented Interfaces:
FloatParameter

public class DoubleFloat
extends AbstractFloat

Represents double float value and type.


Field Summary
static int DOUBLE_LENGTH
          Length of double type in bytes
 
Constructor Summary
DoubleFloat()
          Constructs an instance with zero value.
DoubleFloat(double d)
          Constructs an instance with the passed value.
DoubleFloat(DoubleFloat t)
          Constructs an instance with the same value as the passed object.
DoubleFloat(FloatParameter srcVal)
          Constructs an instance with the same value as the passed object.
 
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
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

DOUBLE_LENGTH

public static final int DOUBLE_LENGTH
Length of double type in bytes

Constructor Detail

DoubleFloat

public DoubleFloat()
Constructs an instance with zero value.


DoubleFloat

public DoubleFloat(FloatParameter srcVal)
Constructs an instance with the same value as the passed object.

Parameters:
srcVal - Source floating-point value

DoubleFloat

public DoubleFloat(double d)
Constructs an instance with the passed value.

Parameters:
d - Source floating-point value

DoubleFloat

public DoubleFloat(DoubleFloat t)
Constructs an instance with the same value as the passed object.

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