com.kenai.jaffl.struct
Class Struct.Enum32<E extends Enum<E>>

java.lang.Object
  extended by java.lang.Number
      extended by com.kenai.jaffl.struct.Struct.NumberField
          extended by com.kenai.jaffl.struct.Struct.EnumField<E>
              extended by com.kenai.jaffl.struct.Struct.Enum32<E>
All Implemented Interfaces:
Struct.Member, Serializable
Direct Known Subclasses:
Struct.Enum
Enclosing class:
Struct

public class Struct.Enum32<E extends Enum<E>>
extends Struct.EnumField<E>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.kenai.jaffl.struct.Struct.EnumField
enumClass
 
Constructor Summary
Struct.Enum32(Class<E> enumClass)
           
 
Method Summary
 E get()
          Gets a java Enum value representing the native integer value.
 int intValue()
           
 void set(E value)
           
 void set(Number value)
          Sets the field to a new value.
 
Methods inherited from class com.kenai.jaffl.struct.Struct.EnumField
toString
 
Methods inherited from class com.kenai.jaffl.struct.Struct.NumberField
doubleValue, floatValue, getMemoryIO, longValue, 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.Enum32

public Struct.Enum32(Class<E> enumClass)
Method Detail

get

public final E get()
Description copied from class: Struct.EnumField
Gets a java Enum value representing the native integer value.

Specified by:
get in class Struct.EnumField<E extends Enum<E>>
Returns:
a java Enum value.

set

public final void set(E 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


Copyright © 2011. All Rights Reserved.