| Modifier and Type | Field and Description |
|---|---|
| protected final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | asBoolean(boolean defaultValue)
Overrides com. Method that will try to convert value of this node to a Java boolean. |
| public String | asText()
Implements abstract com. Method that will return a valid String representation of
the container value, if the node is a value node
(method |
| public JsonToken | asToken()
Implements abstract com. Implements com. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public BigInteger | bigIntegerValue()
Implements abstract com. Returns integer value for this node (as |
| public boolean | canConvertToInt()
Implements abstract com. Method that can be used to check whether this node is a numeric
node ( |
| public boolean | canConvertToLong()
Implements abstract com. Method that can be used to check whether this node is a numeric
node ( |
| public BigDecimal | decimalValue()
Implements abstract com. Returns floating point value for this node (as |
| public double | doubleValue()
Implements abstract com. Returns 64-bit floating point (double) value for this node, if and only if
this node is numeric ( |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. Equality for node objects is defined as full (deep) value equality. |
| public float | floatValue()
Overrides com. Returns 32-bit floating value for this node, if and only if
this node is numeric ( |
| public int | hashCode()
Implements abstract com. Returns a hash code value for this object. |
| public int | intValue()
Implements abstract com. Returns integer value for this node, if and only if
this node is numeric ( |
| public boolean | |
| public boolean | isLong()
Overrides com. Method that can be used to check whether contained value
is a number represented as Java |
| public long | longValue()
Implements abstract com. Returns 64-bit long value for this node, if and only if
this node is numeric ( |
| public JsonParser. | numberType()
Implements abstract com. Implements com. Returns code that identifies type of underlying numeric value, if (and only if) node is a number node. |
| public Number | numberValue()
Implements abstract com. Returns numeric value for this node, if and only if
this node is numeric ( |
| public final void | serialize(JsonGenerator g, SerializerProvider provider)
Implements abstract com. Implements com. Method called to serialize node instances using given generator. |
| public short | shortValue()
Overrides com. Returns 16-bit short value for this node, if and only if
this node is numeric ( |
| public static LongNode |
| _value | back to summary |
|---|---|
| protected final long _value | |
| LongNode | back to summary |
|---|---|
| public LongNode(long v) | |
| asBoolean | back to summary |
|---|---|
| public boolean asBoolean(boolean defaultValue) Overrides com. Doc from com. Method that will try to convert value of this node to a Java boolean. JSON booleans map naturally; integer numbers other than 0 map to true, and 0 maps to false and Strings 'true' and 'false' map to corresponding values. If representation cannot be converted to a boolean value (including structured types like Objects and Arrays), specified defaultValue will be returned; no exceptions are thrown.
| |
| asText | back to summary |
|---|---|
| public String asText() Implements abstract com. Doc from com. Method that will return a valid String representation of
the container value, if the node is a value node
(method
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements abstract com. Implements com. Doc from com. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| bigIntegerValue | back to summary |
|---|---|
| public BigInteger bigIntegerValue() Implements abstract com. Doc from com. Returns integer value for this node (as Note In Jackson 2.x MAY throw
| |
| canConvertToInt | back to summary |
|---|---|
| public boolean canConvertToInt() Implements abstract com. Doc from com. Method that can be used to check whether this node is a numeric
node ( Note this method does not consider possible value type conversion
from JSON String into Number; so even if this method returns false,
it is possible that
| |
| canConvertToLong | back to summary |
|---|---|
| public boolean canConvertToLong() Implements abstract com. Doc from com. Method that can be used to check whether this node is a numeric
node ( Note this method does not consider possible value type conversion
from JSON String into Number; so even if this method returns false,
it is possible that
| |
| decimalValue | back to summary |
|---|---|
| public BigDecimal decimalValue() Implements abstract com. Doc from com. Returns floating point value for this node (as
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract com. Doc from com. Returns 64-bit floating point (double) value for this node, if and only if
this node is numeric (
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract com. Doc from com. Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. Note marked as abstract to ensure all implementation
classes define it properly and not rely on definition
from
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() Overrides com. Doc from com. Returns 32-bit floating value for this node, if and only if
this node is numeric (
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract com. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract com. Doc from com. Returns integer value for this node, if and only if
this node is numeric (
| |
| isIntegralNumber | back to summary |
|---|---|
| public boolean isIntegralNumber() Overrides com.
| |
| isLong | back to summary |
|---|---|
| public boolean isLong() Overrides com. Doc from com. Method that can be used to check whether contained value
is a number represented as Java
| |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract com. Doc from com. Returns 64-bit long value for this node, if and only if
this node is numeric (
| |
| numberType | back to summary |
|---|---|
| public JsonParser. Implements abstract com. Implements com. Doc from com. Returns code that identifies type of underlying numeric value, if (and only if) node is a number node.
| |
| numberValue | back to summary |
|---|---|
| public Number numberValue() Implements abstract com. Doc from com. Returns numeric value for this node, if and only if
this node is numeric ( | |
| serialize | back to summary |
|---|---|
| public final void serialize(JsonGenerator g, SerializerProvider provider) throws IOException Implements abstract com. Implements com. Doc from com. Method called to serialize node instances using given generator.
| |
| shortValue | back to summary |
|---|---|
| public short shortValue() Overrides com. Doc from com. Returns 16-bit short value for this node, if and only if
this node is numeric (
| |
| valueOf | back to summary |
|---|---|
| public static LongNode valueOf(long l) | |