|
JSON Version 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jackson.map.JsonNode
org.codehaus.jackson.map.impl.ValueNode
org.codehaus.jackson.map.impl.NumericNode
org.codehaus.jackson.map.impl.LongNode
public final class LongNode
Numeric node that contains simple 64-bit integer values.
| Constructor Summary | |
|---|---|
LongNode(long v)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Let's mark this standard method as abstract to ensure all implementation classes define it |
BigDecimal |
getDecimalValue()
|
double |
getDoubleValue()
|
int |
getIntValue()
|
long |
getLongValue()
|
Number |
getNumberValue()
|
String |
getValueAsText()
Method that will return valid String representation of the container value, if the node is a value node (method JsonNode.isValueNode() returns true), otherwise null. |
boolean |
isIntegralNumber()
|
boolean |
isLong()
|
static LongNode |
valueOf(long l)
|
void |
writeTo(JsonGenerator jg)
Method that can be called to serialize this node and all of its descendants using specified JSON generator. |
| Methods inherited from class org.codehaus.jackson.map.impl.NumericNode |
|---|
isNumber |
| Methods inherited from class org.codehaus.jackson.map.impl.ValueNode |
|---|
getPath, getPath, isValueNode, toString |
| Methods inherited from class org.codehaus.jackson.map.JsonNode |
|---|
appendElement, getBooleanValue, getElements, getElementValue, getFieldNames, getFieldValue, getFieldValues, getTextValue, insertElement, isArray, isBigDecimal, isBoolean, isContainerNode, isDouble, isFloatingPointNumber, isInt, isMissingNode, isNull, isObject, isTextual, removeElement, removeElement, reportNoArrayMods, reportNoObjectMods, setElement, setElement, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongNode(long v)
| Method Detail |
|---|
public static LongNode valueOf(long l)
public boolean isIntegralNumber()
isIntegralNumber in class JsonNodepublic boolean isLong()
isLong in class JsonNodepublic Number getNumberValue()
getNumberValue in class NumericNodepublic int getIntValue()
getIntValue in class NumericNodepublic long getLongValue()
getLongValue in class NumericNodepublic double getDoubleValue()
getDoubleValue in class NumericNodepublic BigDecimal getDecimalValue()
getDecimalValue in class NumericNodepublic String getValueAsText()
JsonNodeJsonNode.isValueNode() returns true), otherwise null.
Note: to serialize nodes of any type, you should call
JsonNode.toString() instead.
getValueAsText in class NumericNode
public void writeTo(JsonGenerator jg)
throws IOException,
JsonGenerationException
JsonNode
writeTo in class JsonNodeIOException
JsonGenerationExceptionpublic boolean equals(Object o)
JsonNode
equals in class JsonNode
|
JSON Version 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||