Package io.deephaven.json
Class InstantValue
Processes a JSON string as an
Instant
.-
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 InstantValue.Builder
builder()
The date-time formatter to use forparsing
.static InstantValue
standard()
The standardInstant
options.static InstantValue
strict()
The strictInstant
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
-
InstantValue
public InstantValue()
-
-
Method Details
-
builder
-
standard
The standardInstant
options. Allows missing and acceptsJsonValueTypes.stringOrNull()
.- Returns:
- the standard Instant options
-
strict
The strictInstant
options. Disallows missing and acceptsJsonValueTypes.string()
.- Returns:
- the strict Instant options
-
allowedTypes
The allowed types. Must be a subset ofJsonValueTypes.stringOrNull()
. By default isJsonValueTypes.stringOrNull()
.- Specified by:
allowedTypes
in classValue
-
dateTimeFormatter
The date-time formatter to use forparsing
. The parsed result must support extractingINSTANT_SECONDS
andNANO_OF_SECOND
fields. Defaults toDateTimeFormatter.ISO_INSTANT
for java versions 12+, andDateTimeFormatter.ISO_OFFSET_DATE_TIME
otherwise. These defaults will parse offsets, converting to UTC as necessary.- Returns:
- the date-time formatter
-
walk
-