| 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 com. Method that may be called on scalar value nodes to get a textual representation of contents. |
| public JsonToken | asToken()
Implements com. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Number | |
| public int | |
| public boolean | isNumber()
Overrides com. Method that allows checking whether this value is a JSON number (integer or floating-point). |
| public JsonParser. | numberType()
Overrides com. Implements com. If this node is a numeric type (as per |
| protected void | write(JsonGenerator g, JacksonJrsTreeCodec codec)
Implements abstract com.
|
| _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() throws IOException | |
| asBigInteger | back to summary |
|---|---|
| public BigInteger asBigInteger() throws IOException | |
| asText | back to summary |
|---|---|
| public String asText() Overrides com. Doc from com. 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 com. Doc from com. 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
| |
| isNumber | back to summary |
|---|---|
| public boolean isNumber() Overrides com. Doc from com. Method that allows checking whether this value is a JSON number (integer or floating-point).
| |
| numberType | back to summary |
|---|---|
| public JsonParser. Overrides com. Implements com. Doc from com. If this node is a numeric type (as per
| |
| write | back to summary |
|---|---|
| protected void write(JsonGenerator g, JacksonJrsTreeCodec codec) throws IOException Implements abstract com.
| |