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 void writeTo(JsonWriter writer) throws JsonException
JsonValuewriteTo in class JsonValuewriter - Writer.JsonException - if any errors occurs.Copyright © 2012–2016 Codenvy, S.A.. All rights reserved.