Package jnr.ffi
Class Struct.Double
java.lang.Object
jnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.Double
- Enclosing class:
Struct
-
Field Summary
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal double
Returns anfloat
representation of thisNumber
.final float
Returns anfloat
representation of thisNumber
.final double
get()
final int
intValue()
Returns aint
representation of thisNumber
.final long
Returns along
representation of thisNumber
.final void
set
(double value) void
Sets the field to a new value.final String
toString()
Returns a string representation of thisNumber
.Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, getMemory, offset, shortValue, struct
-
Constructor Details
-
Double
public Double() -
Double
-
-
Method Details
-
get
public final double get() -
set
public final void set(double value) -
set
Description copied from class:Struct.NumberField
Sets the field to a new value.- Specified by:
set
in classStruct.NumberField
- Parameters:
value
- The new value.
-
intValue
public final int intValue()Description copied from class:Struct.NumberField
Returns aint
representation of thisNumber
.- Specified by:
intValue
in classStruct.NumberField
- Returns:
- a
int
value for thisNumber
.
-
longValue
public final long longValue()Description copied from class:Struct.NumberField
Returns along
representation of thisNumber
.- Overrides:
longValue
in classStruct.NumberField
- Returns:
- a
long
value for thisNumber
.
-
floatValue
public final float floatValue()Description copied from class:Struct.NumberField
Returns anfloat
representation of thisNumber
.- Overrides:
floatValue
in classStruct.NumberField
- Returns:
- an
float
value for thisNumber
.
-
doubleValue
public final double doubleValue()Description copied from class:Struct.NumberField
Returns anfloat
representation of thisNumber
.- Overrides:
doubleValue
in classStruct.NumberField
- Returns:
- an
float
value for thisNumber
.
-
toString
Description copied from class:Struct.NumberField
Returns a string representation of thisNumber
.- Overrides:
toString
in classStruct.NumberField
- Returns:
- a string representation of this
Number
.
-