Package io.deephaven.json
Class TupleValue
java.lang.Object
io.deephaven.json.Value
io.deephaven.json.ValueRestrictedUniverseBase
io.deephaven.json.TupleValue
A "tuple", where an
JsonValueTypes.ARRAY is a known size and each element has a defined type.
For example, the JSON value ["foo", 42, 5.72] might be modelled as
TupleOptions.of(StringOptions.standard(), IntOptions.standard(), DoubleOptions.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 TupleValue.Builderbuilder()The named, ordered values of the tuple.static TupleValueCreates a tuple of the givenvalues, with name incrementing, starting from "0".static TupleValueCreates a tuple of the givenvalues, with name incrementing, starting from "0".final <T> Twalk(Value.Visitor<T> visitor) Methods inherited from class io.deephaven.json.Value
allowMissing, array, field, skip
-
Constructor Details
-
TupleValue
public TupleValue()
-
-
Method Details
-
builder
-
of
Creates a tuple of the givenvalues, with name incrementing, starting from "0".- Parameters:
values- the values- Returns:
- the tuple options
-
of
Creates a tuple of the givenvalues, with name incrementing, starting from "0".- Parameters:
values- the values- Returns:
- the tuple options
-
namedValues
The named, ordered values of the tuple. -
allowedTypes
The allowed types. Must be a subset ofJsonValueTypes.arrayOrNull(). By default isJsonValueTypes.arrayOrNull().- Specified by:
allowedTypesin classValue
-
walk
-