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.
|
JsonToken |
asToken() |
Number |
getValue() |
boolean |
isNumber()
Method that allows checking whether this value is a JSON number
(integer or floating-point).
|
JsonParser.NumberType |
numberType() |
protected void |
write(JsonGenerator g,
JacksonJrsTreeCodec codec) |
_at, get, get, isContainerNode, isValueNode, path, path, size
at, at, fieldNames, isArray, isEmbeddedValue, isMissingNode, isNull, isObject, traverse, traverse
public JrsNumber(Number value)
public boolean isNumber()
JrsValue
public Number getValue()
public JsonToken asToken()
public String asText()
JrsValue
public JsonParser.NumberType numberType()
numberType
in interface TreeNode
numberType
in class JrsValue
public BigInteger asBigInteger() throws IOException
IOException
public BigDecimal asBigDecimal() throws IOException
IOException
protected void write(JsonGenerator g, JacksonJrsTreeCodec codec) throws IOException
write
in class JrsValue
IOException
Copyright © 2020 FasterXML. All rights reserved.