public final class FloatValue extends PrimitiveValueBase
Constructor and Description |
---|
FloatValue() |
Modifier and Type | Method and Description |
---|---|
PrimitiveValueType |
getType()
Returns the type of primitive value this instance represents.
|
Object |
getValueObject()
Returns a value object.
|
void |
parse(String value)
Parse the string literal value into the specific data type.
|
static float |
parseString(String value)
Parse string value returning a float.
|
static float[] |
parseString(String[] values)
Parse the string array returning a float array.
|
void |
setFloat(float x)
Set a float value.
|
String |
toString() |
parse, setBoolean, setByte, setDouble, setInt, setLong, setShort, setString
public PrimitiveValueType getType()
PrimitiveValue
public static float parseString(String value)
value
- to parsepublic static float[] parseString(String[] values)
values
- - string arraypublic final void parse(String value)
PrimitiveValue
value
- is the textual value to parsepublic final Object getValueObject()
PrimitiveValue
public final void setFloat(float x)
PrimitiveValue
setFloat
in interface PrimitiveValue
setFloat
in class PrimitiveValueBase
x
- is the value to set