public class LongValue extends NumericValue
| Constructor and Description |
|---|
LongValue(long value)
Constructs new LongValue.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getByteValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
short |
getShortValue() |
String |
getStringValue() |
boolean |
isLong() |
String |
toString() |
void |
writeTo(JsonWriter writer)
Write value in given writer.
|
isNumericaddElement, addElement, getBooleanValue, getElement, getElements, getKeys, getNumberValue, isArray, isBoolean, isDouble, isNull, isObject, isString, sizepublic LongValue(long value)
value - the value.public boolean isLong()
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 double getDoubleValue()
getDoubleValue in class JsonValuepublic float getFloatValue()
getFloatValue 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 © 2017 eXo Platform SAS. All Rights Reserved.