Package jnr.ffi
Class Struct.Double
- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.NumberField
-
- jnr.ffi.Struct.Double
-
- Enclosing class:
- Struct
public final class Struct.Double extends Struct.NumberField
-
-
Field Summary
-
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
-
Constructor Summary
Constructors Constructor Description Double()Double(Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledoubleValue()Returns anfloatrepresentation of thisNumber.floatfloatValue()Returns anfloatrepresentation of thisNumber.doubleget()intintValue()Returns aintrepresentation of thisNumber.longlongValue()Returns alongrepresentation of thisNumber.voidset(double value)voidset(Number value)Sets the field to a new value.StringtoString()Returns a string representation of thisNumber.-
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, getMemory, offset, shortValue, struct
-
-
-
-
Constructor Detail
-
Double
public Double()
-
Double
public Double(Struct.Offset offset)
-
-
Method Detail
-
get
public final double get()
-
set
public final void set(double 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.
-
floatValue
public final float floatValue()
Description copied from class:Struct.NumberFieldReturns anfloatrepresentation of thisNumber.- Overrides:
floatValuein classStruct.NumberField- Returns:
- an
floatvalue for thisNumber.
-
doubleValue
public final double doubleValue()
Description copied from class:Struct.NumberFieldReturns anfloatrepresentation of thisNumber.- Overrides:
doubleValuein classStruct.NumberField- Returns:
- an
floatvalue for thisNumber.
-
toString
public final String toString()
Description copied from class:Struct.NumberFieldReturns a string representation of thisNumber.- Overrides:
toStringin classStruct.NumberField- Returns:
- a string representation of this
Number.
-
-