JsonNode implementation for efficiently containing 32-bit
`float` values.
| Modifier and Type | Field and Description |
|---|---|
| protected final float | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected BigInteger | _asBigIntegerValueUnchecked()
Implements abstract tools. Method for sub-classes to implement; returns the underlying
value as a |
| protected BigDecimal | _asDecimalValueUnchecked()
Implements abstract tools. Method for sub-classes to implement; returns the underlying
value as a |
| 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 double | asDouble()
Implements abstract tools. Method similar to
|
| public double | asDouble(double defaultValue)
Implements abstract tools. Method similar to |
| public OptionalDouble | asDoubleOpt()
Implements abstract tools. Method similar to |
| public float | asFloat()
Implements abstract tools. Method similar to
|
| public float | asFloat(float defaultValue)
Implements abstract tools. Method similar to |
| public Optional | asFloatOpt()
Implements abstract tools. Method similar to |
| public double | doubleValue()
Implements abstract tools. Method that will try to access value of this node as a |
| public double | doubleValue(double defaultValue)
Implements abstract tools. Method similar to |
| public OptionalDouble | doubleValueOpt()
Implements abstract tools. Method similar to |
| public boolean | equals(Object o)
Implements abstract tools. Equality for node objects is defined as full (deep) value equality. |
| public float | floatValue()
Implements abstract tools. Method that will try to access value of this node as a Java |
| public float | floatValue(float defaultValue)
Implements abstract tools. Method similar to |
| public Optional | floatValueOpt()
Implements abstract tools. Method similar to |
| public boolean | hasFractionalPart()
Implements abstract tools. Convenience method for checking whether this node is a |
| 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 boolean | |
| public boolean | isNaN()
Implements abstract tools. Convenience method for checking whether this node is a
|
| 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 static FloatNode |
| _value | back to summary |
|---|---|
| protected final float _value | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| FloatNode | back to summary |
|---|---|
| public FloatNode(float v) | |
| _asBigIntegerValueUnchecked | back to summary |
|---|---|
| protected BigInteger _asBigIntegerValueUnchecked() Implements abstract tools. Doc from tools. Method for sub-classes to implement; returns the underlying
value as a
| |
| _asDecimalValueUnchecked | back to summary |
|---|---|
| protected BigDecimal _asDecimalValueUnchecked() Implements abstract tools. Doc from tools. Method for sub-classes to implement; returns the underlying
value as a
| |
| _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
| |
| asDouble | back to summary |
|---|---|
| public double asDouble() Implements abstract tools. Doc from tools. Method similar to
| |
| asDouble | back to summary |
|---|---|
| public double asDouble(double defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| asDoubleOpt | back to summary |
|---|---|
| public OptionalDouble asDoubleOpt() Implements abstract tools. Doc from tools. Method similar to
| |
| asFloat | back to summary |
|---|---|
| public float asFloat() Implements abstract tools. Doc from tools. Method similar to
| |
| asFloat | back to summary |
|---|---|
| public float asFloat(float defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| asFloatOpt | back to summary |
|---|---|
| public Optional Implements abstract tools. Doc from tools. Method similar to
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract tools. Doc from tools. Method that will try to access value of this node as a
Note for more lenient conversions, use
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue(double defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| doubleValueOpt | back to summary |
|---|---|
| public OptionalDouble doubleValueOpt() Implements abstract 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
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract tools. Doc from tools. Method that will try to access value of this node as a Java
| |
| floatValue | back to summary |
|---|---|
| public float floatValue(float defaultValue) Implements abstract tools. Doc from tools. Method similar to
| |
| floatValueOpt | back to summary |
|---|---|
| public Optional Implements abstract tools. Doc from tools. Method similar to
| |
| hasFractionalPart | back to summary |
|---|---|
| public boolean hasFractionalPart() Implements abstract tools. Doc from tools. Convenience method for checking whether this node is a
| |
| 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
| |
| isFloat | back to summary |
|---|---|
| public boolean isFloat() Overrides tools.
| |
| isNaN | back to summary |
|---|---|
| public boolean isNaN() Implements abstract tools. Doc from tools. Convenience method for checking whether this node is a
| |
| 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.
| |
| valueOf | back to summary |
|---|---|
| public static FloatNode valueOf(float v) | |