| Modifier and Type | Field and Description |
|---|---|
| private final JsonParser. | |
| private final Number | |
| private static final Map |
| Modifier and Type | Method and Description |
|---|---|
| public BigDecimal | |
| public BigInteger | |
| public String | asText()
Overrides tools. Method that may be called on scalar value nodes to get a textual representation of contents. |
| public JsonToken | asToken()
Implements tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Number | |
| public int | |
| public boolean | |
| public boolean | isNumber()
Overrides tools. Method that allows checking whether this value is a JSON number (integer or floating-point). |
| public JsonParser. | numberType()
Overrides tools. Implements tools. If this node is a numeric type (as per |
| protected void | write(JsonGenerator g, JacksonJrsTreeCodec codec)
Implements abstract tools.
|
| _numberType | back to summary |
|---|---|
| private final JsonParser. | |
| _value | back to summary |
|---|---|
| private final Number _value | |
| NUMBER_TYPES | back to summary |
|---|---|
| private static final Map<Class<? extends Number>, JsonParser. | |
| JrsNumber | back to summary |
|---|---|
| public JrsNumber(Number value) | |
| asBigDecimal | back to summary |
|---|---|
| public BigDecimal asBigDecimal() | |
| asBigInteger | back to summary |
|---|---|
| public BigInteger asBigInteger() | |
| asText | back to summary |
|---|---|
| public String asText() Overrides tools. Doc from tools. Method that may be called on scalar value nodes to get a textual representation of contents. Returns `null` for structured values (Arrays, Objects), textual representation for other types.
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements tools. Doc from tools. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getValue | back to summary |
|---|---|
| public Number getValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. 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
| |
| isNaN | back to summary |
|---|---|
| public boolean isNaN() | |
| isNumber | back to summary |
|---|---|
| public boolean isNumber() Overrides tools. Doc from tools. Method that allows checking whether this value is a JSON number (integer or floating-point).
| |
| numberType | back to summary |
|---|---|
| public JsonParser. Overrides tools. Implements tools. Doc from tools. If this node is a numeric type (as per
| |
| write | back to summary |
|---|---|
| protected void write(JsonGenerator g, JacksonJrsTreeCodec codec) throws JacksonException Implements abstract tools.
| |