E - the type of Enumprotected abstract class Struct.EnumField<E> extends Struct.NumberField
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class<E> |
enumClass |
type| 构造器和说明 |
|---|
EnumField(NativeType type,
Class<E> enumClass)
Constructs a new Enum field.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 Struct.NumberFieldCopyright © 2021. All rights reserved.