- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.NumberField
-
- jnr.ffi.Struct.EnumField<E>
-
- jnr.ffi.Struct.EnumLong<E>
-
- Enclosing class:
- Struct
public class Struct.EnumLong<E extends Enum<E>> extends Struct.EnumField<E>
-
-
Field Summary
-
Fields inherited from class jnr.ffi.Struct.EnumField
enumClass
-
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eget()Gets a java Enum value representing the native integer value.intintValue()Returns aintrepresentation of thisNumber.longlongValue()Returns alongrepresentation of thisNumber.voidset(E value)voidset(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
-
-
-
-
Method Detail
-
get
public final E get()
Description copied from class:Struct.EnumFieldGets a java Enum value representing the native integer value.- Specified by:
getin classStruct.EnumField<E extends Enum<E>>- Returns:
- a java Enum value.
-
set
public final void set(E value)
-
set
public void set(Number value)
Description copied from class:Struct.NumberFieldSets the field to a new value.- Specified by:
setin classStruct.NumberField- Parameters:
value- The new value.
-
intValue
public final int intValue()
Description copied from class:Struct.NumberFieldReturns aintrepresentation of thisNumber.- Specified by:
intValuein classStruct.NumberField- Returns:
- a
intvalue for thisNumber.
-
longValue
public final long longValue()
Description copied from class:Struct.NumberFieldReturns alongrepresentation of thisNumber.- Overrides:
longValuein classStruct.NumberField- Returns:
- a
longvalue for thisNumber.
-
-