Package io.deephaven.json
Class BigDecimalValue
Processes a JSON value as a
BigDecimal
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.json.ValueSingleValueBase
ValueSingleValueBase.BuilderSpecial<T,
V extends ValueSingleValueBase<T>, B extends ValueSingleValueBase.BuilderSpecial<T, V, B>> Nested classes/interfaces inherited from class io.deephaven.json.Value
Value.Visitor<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe allowed types.static BigDecimalValue.Builder
builder()
static BigDecimalValue
lenient()
The lenientBigDecimal
options.static BigDecimalValue
standard()
The standardBigDecimal
options.static BigDecimalValue
strict()
The strictBigDecimal
options.final <T> T
walk
(Value.Visitor<T> visitor) Methods inherited from class io.deephaven.json.ValueSingleValueBase
onMissing, onNull
Methods inherited from class io.deephaven.json.Value
allowMissing, array, field, skip
-
Constructor Details
-
BigDecimalValue
public BigDecimalValue()
-
-
Method Details
-
builder
-
lenient
The lenientBigDecimal
options. Allows missing and acceptsJsonValueTypes.numberLike()
.- Returns:
- the lenient BigDecimal options
-
standard
The standardBigDecimal
options. Allows missing and acceptsJsonValueTypes.numberOrNull()
.- Returns:
- the standard BigDecimal options
-
strict
The strictBigDecimal
options. Disallows missing and acceptsJsonValueTypes.number()
.- Returns:
- the strict BigDecimal options
-
allowedTypes
The allowed types. Must be a subset ofJsonValueTypes.numberLike()
. By default isJsonValueTypes.numberOrNull()
.- Specified by:
allowedTypes
in classValue
-
walk
-