com.kenai.jaffl.struct
Class Struct.Float

java.lang.Object
  extended by java.lang.Number
      extended by com.kenai.jaffl.struct.Struct.NumberField
          extended by com.kenai.jaffl.struct.Struct.Float
All Implemented Interfaces:
Struct.Member, Serializable
Enclosing class:
Struct

public class Struct.Float
extends Struct.NumberField

See Also:
Serialized Form

Constructor Summary
Struct.Float()
           
Struct.Float(Struct.Offset offset)
          Creates a new float field at a specific offset
 
Method Summary
 double doubleValue()
          Returns an float representation of this Number.
 float floatValue()
          Returns an float representation of this Number.
 float get()
           
 int intValue()
           
 long longValue()
          Returns an long representation of this Number.
 void set(float 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 com.kenai.jaffl.struct.Struct.NumberField
getMemoryIO, offset, struct
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Struct.Float

public Struct.Float()

Struct.Float

public Struct.Float(Struct.Offset offset)
Creates a new float field at a specific offset

Parameters:
offset - The offset within the memory area for this field.
Method Detail

get

public final float get()

set

public final void set(float 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()
Specified by:
intValue in class 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.

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.

longValue

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

Overrides:
longValue in class Struct.NumberField
Returns:
an long 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 © 2011. All Rights Reserved.