|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.EnumField<E>
jnr.ffi.Struct.Enum64<E>
public class Struct.Enum64<E extends java.lang.Enum<E>>
| Field Summary |
|---|
| Fields inherited from class jnr.ffi.Struct.EnumField |
|---|
enumClass |
| Fields inherited from class jnr.ffi.Struct.NumberField |
|---|
type |
| Constructor Summary | |
|---|---|
Struct.Enum64(java.lang.Class<E> enumClass)
|
|
| Method Summary | |
|---|---|
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(java.lang.Number value)
Sets the field to a new value. |
| Methods inherited from class jnr.ffi.Struct.EnumField |
|---|
toString |
| Methods inherited from class jnr.ffi.Struct.NumberField |
|---|
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Struct.Enum64(java.lang.Class<E> enumClass)
| Method Detail |
|---|
public final E get()
Struct.EnumField
get in class Struct.EnumField<E extends java.lang.Enum<E>>public final void set(E value)
public void set(java.lang.Number value)
Struct.NumberField
set in class Struct.NumberFieldvalue - The new value.public final int intValue()
Struct.NumberFieldint representation of this Number.
intValue in class Struct.NumberFieldint value for this Number.public final long longValue()
Struct.NumberFieldlong representation of this Number.
longValue in class Struct.NumberFieldlong value for this Number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||