E
- the type of Enum
protected abstract class Struct.EnumField<E> extends Struct.NumberField
Modifier and Type | Field and Description |
---|---|
protected Class<E> |
enumClass |
type
Constructor and Description |
---|
EnumField(NativeType type,
Class<E> enumClass)
Constructs a new Enum field.
|
Modifier and Type | Method and Description |
---|---|
abstract E |
get()
Gets a java Enum value representing the native integer value.
|
String |
toString()
Returns a string representation of this field.
|
byteValue, doubleValue, floatValue, getMemory, intValue, longValue, offset, set, shortValue, struct
public EnumField(NativeType type, Class<E> enumClass)
type
- the native type of the enum.enumClass
- the Enum class.public abstract E get()
public final String toString()
toString
in class Struct.NumberField
Copyright © 2017. All rights reserved.