| Modifier and Type | Field and Description |
|---|---|
| protected final int | _value
Integer value this node contains |
| private static final IntNode[] | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Boolean | _asBoolean()
Overrides tools. Method sub-classes should override if they can produce |
| protected double | _asDoubleValueUnchecked()
Implements abstract tools.
|
| protected float | _asFloatValueUnchecked()
Implements abstract tools.
|
| public int | _asIntValueUnchecked()
Implements abstract tools. Method for sub-classes to implement; returns the underlying
value as a |
| public long | _asLongValueUnchecked()
Implements abstract tools. Method for sub-classes to implement; returns the underlying
value as a |
| public short | _asShortValueUnchecked()
Implements abstract tools. Method for sub-classes to implement; returns the underlying
value as a |
| protected String | _asString()
Implements abstract tools. Method sub-classes should override if they can produce |
| public int | asInt()
Implements abstract tools. Method similar to
|
| public int | asInt(int defaultValue)
Implements abstract tools. Method similar to |
| public OptionalInt | asIntOpt()
Implements abstract tools. Method similar to |
| public long | asLong()
Implements abstract tools. Method similar to
|
| public long | asLong(long defaultValue)
Implements abstract tools. Method similar to |
| public OptionalLong | asLongOpt()
Implements abstract tools. Method similar to |
| public short | asShort()
Implements abstract tools. Method similar to
|
| public short | asShort(short defaultValue)
Implements abstract tools. Method similar to |
| public Optional | asShortOpt()
Implements abstract tools. Method similar to |
| public BigInteger | bigIntegerValue()
Implements abstract tools. Method that will try to access value of this node as a |
| public BigInteger | bigIntegerValue(BigInteger defaultValue)
Overrides tools. Method similar to |
| public Optional | bigIntegerValueOpt()
Overrides tools. Method similar to |
| public BigDecimal | decimalValue()
Implements abstract tools. Method that will try to access value of this node as a Java |
| public BigDecimal | decimalValue(BigDecimal defaultValue)
Overrides tools. Method similar to |
| public Optional | decimalValueOpt()
Overrides tools. Method similar to |
| public boolean | equals(Object o)
Implements abstract tools. Equality for node objects is defined as full (deep) value equality. |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| public boolean | inIntRange()
Implements abstract tools. Method that can be used to determine whether this numeric value's in
part fits within Java 32-bit |
| public boolean | inLongRange()
Implements abstract tools. Method that can be used to determine whether this numeric value's in
part fits within Java 64-bit |
| public boolean | inShortRange()
Implements abstract tools. Method that can be used to determine whether this numeric value's in
part fits within Java 16-bit |
| public int | intValue()
Implements abstract tools. Method that will try to access value of this node as a Java |
| public int | intValue(int defaultValue)
Implements abstract tools. Method similar to |
| public OptionalInt | intValueOpt()
Implements abstract tools. Method similar to |
| public boolean | isInt()
Overrides tools. Method that can be used to check whether contained value
is a number represented as Java |
| public long | longValue()
Implements abstract tools. Method that will try to access value of this node as a Java |
| public long | longValue(long defaultValue)
Implements abstract tools. Method similar to |
| public OptionalLong | longValueOpt()
Implements abstract tools. Method similar to |
| public JsonParser. | numberType()
Implements abstract tools. Implements tools. Returns code that identifies type of underlying numeric value, if (and only if) node is a number node. |
| public Number | numberValue()
Implements abstract tools. Method that will try to access value of this node as |
| public final void | serialize(JsonGenerator g, SerializationContext provider)
Implements abstract tools. Implements tools. Method called to serialize node instances using given generator. |
| public short | shortValue()
Implements abstract tools. Method that will try to access value of this node as 16-bit signed
integer value (Java |
| public short | shortValue(short defaultValue)
Implements abstract tools. Method similar to |
| public Optional | shortValueOpt()
Implements abstract tools. Method similar to |
| public static IntNode |
| _value | back to summary |
|---|---|
| protected final int _value Integer value this node contains | |
| CANONICALS | back to summary |
|---|---|
| private static final IntNode[] CANONICALS | |
| MAX_CANONICAL | back to summary |
|---|---|
| pack-priv static final int MAX_CANONICAL | |
| MIN_CANONICAL | back to summary |
|---|---|
| pack-priv static final int MIN_CANONICAL | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| IntNode | back to summary |
|---|---|
| public IntNode(int v) | |
| _asBoolean | back to summary |
|---|---|
| protected Boolean _asBoolean() Overrides tools. Doc from tools. Method sub-classes should override if they can produce
| |
| _asDoubleValueUnchecked | back to summary |
|---|---|
| protected double _asDoubleValueUnchecked() Implements abstract tools.
| |
| _asFloatValueUnchecked | back to summary |
|---|---|
| protected float _asFloatValueUnchecked() Implements abstract tools.
| |
| _asIntValueUnchecked | back to summary |
|---|---|
| public int _asIntValueUnchecked() Implements abstract tools. Doc from tools. Method for sub-classes to implement; returns the underlying
value as a
| |
| _asLongValueUnchecked | back to summary |
|---|---|
| public long _asLongValueUnchecked() Implements abstract tools. Doc from tools. Method for sub-classes to implement; returns the underlying
value as a
| |
| _asShortValueUnchecked | back to summary |
|---|---|
| public short _asShortValueUnchecked() Implements abstract tools. Doc from tools. Method for sub-classes to implement; returns the underlying
value as a
| |
| _asString | back to summary |
|---|---|
| protected String _asString() Implements abstract tools. Doc from tools. Method sub-classes should override if they can produce
| |
| asInt | back to summary |
|---|---|
| public int asInt() Implements abstract tools. Doc from tools. Method similar to
| |
| asInt | back to summary |
|---|---|
| public int asInt(int defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| asIntOpt | back to summary |
|---|---|
| public OptionalInt asIntOpt() Implements abstract tools. Doc from tools. Method similar to
| |
| asLong | back to summary |
|---|---|
| public long asLong() Implements abstract tools. Doc from tools. Method similar to
| |
| asLong | back to summary |
|---|---|
| public long asLong(long defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| asLongOpt | back to summary |
|---|---|
| public OptionalLong asLongOpt() Implements abstract tools. Doc from tools. Method similar to
| |
| asShort | back to summary |
|---|---|
| public short asShort() Implements abstract tools. Doc from tools. Method similar to
| |
| asShort | back to summary |
|---|---|
| public short asShort(short defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| asShortOpt | back to summary |
|---|---|
| public Optional Implements abstract tools. Doc from tools. Method similar to
| |
| bigIntegerValue | back to summary |
|---|---|
| public BigInteger bigIntegerValue() Implements abstract tools. Doc from tools. Method that will try to access value of this node as a
| |
| bigIntegerValue | back to summary |
|---|---|
| public BigInteger bigIntegerValue(BigInteger defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| bigIntegerValueOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| decimalValue | back to summary |
|---|---|
| public BigDecimal decimalValue() Implements abstract tools. Doc from tools. Method that will try to access value of this node as a Java
Note for more lenient conversions, use
| |
| decimalValue | back to summary |
|---|---|
| public BigDecimal decimalValue(BigDecimal defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| decimalValueOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract tools. Doc from tools. 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
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tools. 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
| |
| inIntRange | back to summary |
|---|---|
| public boolean inIntRange() Implements abstract tools. Doc from tools. Method that can be used to determine whether this numeric value's in
part fits within Java 32-bit
| |
| inLongRange | back to summary |
|---|---|
| public boolean inLongRange() Implements abstract tools. Doc from tools. Method that can be used to determine whether this numeric value's in
part fits within Java 64-bit
| |
| inShortRange | back to summary |
|---|---|
| public boolean inShortRange() Implements abstract tools. Doc from tools. Method that can be used to determine whether this numeric value's in
part fits within Java 16-bit
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract tools. Doc from tools. Method that will try to access value of this node as a Java
Note for more lenient conversions, use
| |
| intValue | back to summary |
|---|---|
| public int intValue(int defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| intValueOpt | back to summary |
|---|---|
| public OptionalInt intValueOpt() Implements abstract tools. Doc from tools. Method similar to
| |
| isInt | back to summary |
|---|---|
| public boolean isInt() Overrides tools. Doc from tools. 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 tools. Doc from tools. Method that will try to access value of this node as a Java
Note for more lenient conversions, use
| |
| longValue | back to summary |
|---|---|
| public long longValue(long defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| longValueOpt | back to summary |
|---|---|
| public OptionalLong longValueOpt() Implements abstract tools. Doc from tools. Method similar to
| |
| numberType | back to summary |
|---|---|
| public JsonParser. Implements abstract tools. Implements tools. Doc from tools. 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 tools. Doc from tools. Method that will try to access value of this node as
| |
| serialize | back to summary |
|---|---|
| public final void serialize(JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Implements tools. Doc from tools. Method called to serialize node instances using given generator.
| |
| shortValue | back to summary |
|---|---|
| public short shortValue() Implements abstract tools. Doc from tools. Method that will try to access value of this node as 16-bit signed
integer value (Java
| |
| shortValue | back to summary |
|---|---|
| public short shortValue(short defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| shortValueOpt | back to summary |
|---|---|
| public Optional Implements abstract tools. Doc from tools. Method similar to
| |
| valueOf | back to summary |
|---|---|
| public static IntNode valueOf(int i) | |