public class DoubleValue extends PrimitiveValueBase
Constructor and Description |
---|
DoubleValue()
Constructor.
|
DoubleValue(Double doubleValue)
Constructor setting the value.
|
Modifier and Type | Method and Description |
---|---|
double |
getDouble()
Return the value as an unboxed.
|
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 double |
parseString(String value)
Parse string value returning a double.
|
static double[] |
parseString(String[] values)
Parse the string array returning a double array.
|
void |
setDouble(double x)
Set a double value.
|
String |
toString() |
parse, setBoolean, setByte, setFloat, setInt, setLong, setShort, setString
public DoubleValue()
public DoubleValue(Double doubleValue)
doubleValue
- value to set.public PrimitiveValueType getType()
PrimitiveValue
public static double parseString(String value)
value
- to parsepublic final void parse(String value)
PrimitiveValue
value
- is the textual value to parsepublic static double[] parseString(String[] values)
values
- - string arraypublic final Object getValueObject()
PrimitiveValue
public final double getDouble()
public final void setDouble(double x)
PrimitiveValue
setDouble
in interface PrimitiveValue
setDouble
in class PrimitiveValueBase
x
- is the value to set