public final class Struct.Double extends Struct.NumberField
Constructor and Description |
---|
Struct.Double() |
Struct.Double(Struct.Offset offset) |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns an
float representation of this Number. |
float |
floatValue()
Returns an
float representation of this Number. |
double |
get() |
int |
intValue() |
long |
longValue()
Returns an
long representation of this Number. |
void |
set(double value) |
void |
set(java.lang.Number value)
Sets the field to a new value.
|
java.lang.String |
toString()
Returns a string representation of this
Address . |
getMemoryIO, offset, struct
public Struct.Double()
public Struct.Double(Struct.Offset offset)
public final double get()
public final void set(double value)
public void set(java.lang.Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final int intValue()
intValue
in class java.lang.Number
public final long longValue()
Struct.NumberField
long
representation of this Number.longValue
in class Struct.NumberField
long
value for this Number.public final float floatValue()
Struct.NumberField
float
representation of this Number.floatValue
in class Struct.NumberField
float
value for this Number.public final double doubleValue()
Struct.NumberField
float
representation of this Number.doubleValue
in class Struct.NumberField
float
value for this Number.public final java.lang.String toString()
Struct.NumberField
Address
.toString
in class Struct.NumberField
Address
.