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 ClassesNested classes/interfaces inherited from class io.deephaven.json.Value
Value.Visitor<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe allowed types.static ArrayValue.Builderbuilder()abstract Valueelement()The type for the elements of the array.static ArrayValueThe standard array options.static ArrayValueThe strict array options.final <T> Twalk(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:
allowedTypesin classValue
-
walk
-