public class DoubleValue extends NumericValue
| Constructor and Description |
|---|
DoubleValue(double value)
Constructs new DoubleValue.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getByteValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
short |
getShortValue() |
String |
getStringValue() |
boolean |
isDouble() |
String |
toString() |
void |
writeTo(JsonWriter writer)
Write value in given writer.
|
isNumericaddElement, addElement, getBooleanValue, getElement, getElements, getKeys, getNumberValue, isArray, isBoolean, isLong, isNull, isObject, isString, sizepublic DoubleValue(double value)
value - the value.public boolean isDouble()
public String getStringValue()
getStringValue in class JsonValuepublic byte getByteValue()
getByteValue in class JsonValuepublic short getShortValue()
getShortValue in class JsonValuepublic int getIntValue()
getIntValue in class JsonValuepublic long getLongValue()
getLongValue in class JsonValuepublic float getFloatValue()
getFloatValue in class JsonValuepublic double getDoubleValue()
getDoubleValue in class JsonValuepublic String toString()
toString in class NumericValuepublic void writeTo(JsonWriter writer) throws JsonException
writeTo in class NumericValuewriter - Writer.JsonException - if any errors occurs.Copyright © 2018 eXo Platform SAS. All Rights Reserved.