E - the type of Enumprotected 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, structpublic 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.NumberFieldCopyright © 2017. All rights reserved.