public class Struct.Float extends Struct.NumberField
type
Constructor and Description |
---|
Float() |
Float(Struct.Offset offset)
Creates a new float field at a specific 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. |
float |
get() |
int |
intValue()
Returns a
int representation of this Number. |
long |
longValue()
Returns a
long representation of this Number. |
void |
set(float value) |
void |
set(Number value)
Sets the field to a new value.
|
String |
toString()
Returns a string representation of this
Number . |
byteValue, getMemory, offset, shortValue, struct
public Float()
public Float(Struct.Offset offset)
offset
- The offset within the memory area for this field.public final float get()
public final void set(float value)
public void set(Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public final int intValue()
Struct.NumberField
int
representation of this Number.intValue
in class Struct.NumberField
int
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 float floatValue()
Struct.NumberField
float
representation of this Number.floatValue
in class Struct.NumberField
float
value for this Number.public final long longValue()
Struct.NumberField
long
representation of this Number.longValue
in class Struct.NumberField
long
value for this Number.public final String toString()
Struct.NumberField
Number
.toString
in class Struct.NumberField
Number
.Copyright © 2017. All rights reserved.