Package io.deephaven.json
Class IntValue
Processes a JSON value as an
int
.-
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 IntValue.Builder
builder()
static IntValue
lenient()
The lenient int options.static IntValue
standard()
The standard int options.static IntValue
strict()
The strict int 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
-
IntValue
public IntValue()
-
-
Method Details
-
builder
-
lenient
The lenient int options. Allows missing and acceptsJsonValueTypes.intLike()
.- Returns:
- the lenient int options
-
standard
The standard int options. Allows missing and acceptsJsonValueTypes.intOrNull()
.- Returns:
- the standard int options
-
strict
The strict int options. Disallows missing and acceptsJsonValueTypes.int_()
.- Returns:
- the strict int options
-
allowedTypes
The allowed types. Must be a subset ofJsonValueTypes.numberLike()
. By default isJsonValueTypes.intOrNull()
.- Specified by:
allowedTypes
in classValue
-
walk
-