Package io.deephaven.json
Class ArrayValue
java.lang.Object
io.deephaven.json.Value
io.deephaven.json.ValueRestrictedUniverseBase
io.deephaven.json.ArrayValue
A "typed array", where all the elements in the
JsonValueTypes.ARRAY
have the same element()
type.
For example, the JSON value [1, 42, 43, 13]
might be modelled as
ArrayOptions.standard(IntOptions.standard())
.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.json.Value
Value.Visitor<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe allowed types.static ArrayValue.Builder
builder()
abstract Value
element()
The type for the elements of the array.static ArrayValue
The standard array options.static ArrayValue
The strict array options.final <T> T
walk
(Value.Visitor<T> visitor) Methods inherited from class io.deephaven.json.Value
allowMissing, array, field, skip
-
Constructor Details
-
ArrayValue
public ArrayValue()
-
-
Method Details
-
builder
-
standard
The standard array options. Allows missing and acceptsJsonValueTypes.arrayOrNull()
.- Parameters:
element
- the element type- Returns:
- the standard array options
-
strict
The strict array options. Disallows missing and acceptsJsonValueTypes.array()
.- Parameters:
element
- the element type- Returns:
- the strict array options
-
element
The type for the elements of the array. -
allowedTypes
The allowed types. Must be a subset ofJsonValueTypes.arrayOrNull()
. By default isJsonValueTypes.arrayOrNull()
.- Specified by:
allowedTypes
in classValue
-
walk
-