com.jniwrapper
Class LongDouble

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

public class LongDouble
extends AbstractFloat

Represents long double value and type.


Field Summary
static int LONG_DOUBLE_LENGTH
          Length of long double type in bytes
 
Constructor Summary
LongDouble()
          Constructs LongDouble object with zero value
LongDouble(double ld)
          Constructs LongDouble object
LongDouble(FloatParameter srcVal)
          Constructs LongDouble object
LongDouble(LongDouble t)
          Constructs a new LongDouble parameter.
 
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

LONG_DOUBLE_LENGTH

public static final int LONG_DOUBLE_LENGTH
Length of long double type in bytes

Constructor Detail

LongDouble

public LongDouble()
Constructs LongDouble object with zero value


LongDouble

public LongDouble(FloatParameter srcVal)
Constructs LongDouble object

Parameters:
srcVal - Source floating-point value

LongDouble

public LongDouble(double ld)
Constructs LongDouble object

Parameters:
ld - Source floating-point value

LongDouble

public LongDouble(LongDouble t)
Constructs a new LongDouble parameter.

Parameters:
t - parameter to take initial value from.
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 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