Package jnr.ffi
Class Struct.IntegerAlias
- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.NumberField
-
- jnr.ffi.Struct.IntegerAlias
-
- Direct Known Subclasses:
Struct.blkcnt_t,Struct.blksize_t,Struct.caddr_t,Struct.cc_t,Struct.clock_t,Struct.dev_t,Struct.fsblkcnt_t,Struct.fsfilcnt_t,Struct.gid_t,Struct.id_t,Struct.in_addr_t,Struct.in_port_t,Struct.ino_t,Struct.ino64_t,Struct.int16_t,Struct.int32_t,Struct.int64_t,Struct.int8_t,Struct.intptr_t,Struct.key_t,Struct.mode_t,Struct.nlink_t,Struct.off_t,Struct.pid_t,Struct.rlim_t,Struct.sa_family_t,Struct.size_t,Struct.socklen_t,Struct.speed_t,Struct.ssize_t,Struct.swblk_t,Struct.tcflag_t,Struct.time_t,Struct.u_int16_t,Struct.u_int32_t,Struct.u_int64_t,Struct.u_int8_t,Struct.uid_t,Struct.uintptr_t
- Enclosing class:
- Struct
public abstract class Struct.IntegerAlias extends Struct.NumberField
-
-
Field Summary
-
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
-
Constructor Summary
Constructors Constructor Description IntegerAlias(TypeAlias type)IntegerAlias(TypeAlias type, Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget()Gets the value for this field.intintValue()Returns aintrepresentation of this Number.longlongValue()Returns alongrepresentation of this Number.voidset(long value)voidset(java.lang.Number value)Sets the field to a new value.java.lang.StringtoString()Returns a string representation of this field.-
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
-
-
-
-
Constructor Detail
-
IntegerAlias
IntegerAlias(TypeAlias type)
-
IntegerAlias
IntegerAlias(TypeAlias type, Struct.Offset offset)
-
-
Method Detail
-
set
public void set(java.lang.Number value)
Description copied from class:Struct.NumberFieldSets the field to a new value.- Specified by:
setin classStruct.NumberField- Parameters:
value- The new value.
-
set
public void set(long value)
-
get
public final long get()
Gets the value for this field.- Returns:
- a long.
-
intValue
public int intValue()
Description copied from class:Struct.NumberFieldReturns aintrepresentation of this Number.- Specified by:
intValuein classStruct.NumberField- Returns:
- a
intvalue for this Number.
-
longValue
public long longValue()
Description copied from class:Struct.NumberFieldReturns alongrepresentation of this Number.- Overrides:
longValuein classStruct.NumberField- Returns:
- a
longvalue for this Number.
-
toString
public final java.lang.String toString()
Returns a string representation of this field.- Overrides:
toStringin classStruct.NumberField- Returns:
- a string representation of this field.
-
-