public class JrsNumber extends JrsValue.Scalar
JrsValue.Scalar| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
asBigDecimal() |
BigInteger |
asBigInteger() |
String |
asText()
Method that may be called on scalar value nodes to get a textual
representation of contents.
|
com.fasterxml.jackson.core.JsonToken |
asToken() |
boolean |
equals(Object o) |
Number |
getValue() |
int |
hashCode() |
boolean |
isNumber()
Method that allows checking whether this value is a JSON number
(integer or floating-point).
|
com.fasterxml.jackson.core.JsonParser.NumberType |
numberType() |
protected void |
write(com.fasterxml.jackson.core.JsonGenerator g,
JacksonJrsTreeCodec codec) |
_at, get, get, isContainerNode, isValueNode, path, path, sizeat, at, fieldNames, isArray, isEmbeddedValue, isMissingNode, isNull, isObject, traverse, traversepublic JrsNumber(Number value)
public boolean isNumber()
JrsValuepublic Number getValue()
public com.fasterxml.jackson.core.JsonToken asToken()
public String asText()
JrsValuepublic com.fasterxml.jackson.core.JsonParser.NumberType numberType()
numberType in interface com.fasterxml.jackson.core.TreeNodenumberType in class JrsValuepublic BigInteger asBigInteger() throws IOException
IOExceptionpublic BigDecimal asBigDecimal() throws IOException
IOExceptionprotected void write(com.fasterxml.jackson.core.JsonGenerator g,
JacksonJrsTreeCodec codec)
throws IOException
write in class JrsValueIOExceptionCopyright © 2025 FasterXML. All rights reserved.