| Modifier and Type | Field and Description |
|---|---|
| protected final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | asBoolean(boolean defaultValue)
Overrides com. |
| public String | asText()
Implements abstract com. isValueNode returns true),
otherwise empty String.
|
| public JsonToken | asToken()
Implements abstract com. Implements com. |
| public BigInteger | bigIntegerValue()
Implements abstract com. BigInteger), if and only if
this node is numeric (isNumber returns true).
|
| public boolean | canConvertToInt()
Implements abstract com. isNumber would return true) AND its value fits
within Java's 32-bit signed integer type, int.
|
| public boolean | canConvertToLong()
Implements abstract com. isNumber would return true) AND its value fits
within Java's 64-bit signed integer type, long.
|
| public BigDecimal | decimalValue()
Implements abstract com. BigDecimal), if and only if
this node is numeric (isNumber returns true).
|
| public double | doubleValue()
Implements abstract com. isNumber returns true).
|
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. |
| public float | floatValue()
Overrides com. isNumber returns true).
|
| public int | hashCode()
Implements abstract com. |
| public int | intValue()
Implements abstract com. isNumber returns true).
|
| public boolean | |
| public boolean | |
| public long | longValue()
Implements abstract com. isNumber returns true).
|
| public JsonParser. | numberType()
Implements abstract com. Implements com. |
| public Number | numberValue()
Implements abstract com. isNumber returns true); otherwise
returns null
|
| public final void | serialize(JsonGenerator g, SerializerProvider provider)
Implements abstract com. Implements com. |
| public short | shortValue()
Overrides com. isNumber returns true).
|
| public static BigIntegerNode |
| _value | back to summary |
|---|---|
| protected final BigInteger _value | |
| MAX_INTEGER | back to summary |
|---|---|
| private static final BigInteger MAX_INTEGER | |
| MAX_LONG | back to summary |
|---|---|
| private static final BigInteger MAX_LONG | |
| MIN_INTEGER | back to summary |
|---|---|
| private static final BigInteger MIN_INTEGER | |
| MIN_LONG | back to summary |
|---|---|
| private static final BigInteger MIN_LONG | |
| BigIntegerNode | back to summary |
|---|---|
| public BigIntegerNode(BigInteger 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 the 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 (
| |
| isBigInteger | back to summary |
|---|---|
| public boolean isBigInteger() Overrides com.
| |
| isIntegralNumber | back to summary |
|---|---|
| public boolean isIntegralNumber() Overrides com.
| |
| 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 BigIntegerNode valueOf(BigInteger v) | |