public class Struct.EnumLong<E extends Enum<E>> extends Struct.EnumField<E>
enumClass
type
Modifier and Type | Method and Description |
---|---|
E |
get()
Gets a java Enum value representing the native integer value.
|
int |
intValue()
Returns a
int representation of this Number. |
long |
longValue()
Returns a
long representation of this Number. |
void |
set(E value) |
void |
set(Number value)
Sets the field to a new value.
|
toString
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
public final E get()
Struct.EnumField
get
in class Struct.EnumField<E extends Enum<E>>
public final void set(E value)
public void set(Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final int intValue()
Struct.NumberField
int
representation of this Number.intValue
in class Struct.NumberField
int
value for this Number.public final long longValue()
Struct.NumberField
long
representation of this Number.longValue
in class Struct.NumberField
long
value for this Number.Copyright © 2017. All rights reserved.