jnr.ffi
Class Struct.Double

java.lang.Object
  extended by jnr.ffi.Struct.Member
      extended by jnr.ffi.Struct.NumberField
          extended by jnr.ffi.Struct.Double
Enclosing class:
Struct

public final class Struct.Double
extends Struct.NumberField


Field Summary
 
Fields inherited from class jnr.ffi.Struct.NumberField
type
 
Constructor Summary
Struct.Double()
           
Struct.Double(Struct.Offset offset)
           
 
Method Summary
 double doubleValue()
          Returns an float representation of this Number.
 float floatValue()
          Returns an float representation of this Number.
 double get()
           
 int intValue()
          Returns a int representation of this Number.
 long longValue()
          Returns a long representation of this Number.
 void set(double value)
           
 void set(Number value)
          Sets the field to a new value.
 String toString()
          Returns a string representation of this Address.
 
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, getMemory, offset, shortValue, struct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Struct.Double

public Struct.Double()

Struct.Double

public Struct.Double(Struct.Offset offset)
Method Detail

get

public final double get()

set

public final void set(double value)

set

public void set(Number value)
Description copied from class: Struct.NumberField
Sets the field to a new value.

Specified by:
set in class Struct.NumberField
Parameters:
value - The new value.

intValue

public final int intValue()
Description copied from class: Struct.NumberField
Returns a int representation of this Number.

Specified by:
intValue in class Struct.NumberField
Returns:
a int value for this Number.

longValue

public final long longValue()
Description copied from class: Struct.NumberField
Returns a long representation of this Number.

Overrides:
longValue in class Struct.NumberField
Returns:
a long value for this Number.

floatValue

public final float floatValue()
Description copied from class: Struct.NumberField
Returns an float representation of this Number.

Overrides:
floatValue in class Struct.NumberField
Returns:
an float value for this Number.

doubleValue

public final double doubleValue()
Description copied from class: Struct.NumberField
Returns an float representation of this Number.

Overrides:
doubleValue in class Struct.NumberField
Returns:
an float value for this Number.

toString

public final String toString()
Description copied from class: Struct.NumberField
Returns a string representation of this Address.

Overrides:
toString in class Struct.NumberField
Returns:
a string representation of this Address.


Copyright © 2012. All Rights Reserved.