Package io.deephaven.json
Class InstantValue
Processes a JSON string as an
Instant.-
Nested Class Summary
Nested ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe allowed types.static InstantValue.Builderbuilder()The date-time formatter to use forparsing.static InstantValuestandard()The standardInstantoptions.static InstantValuestrict()The strictInstantoptions.final <T> Twalk(Value.Visitor<T> visitor) Methods inherited from class io.deephaven.json.ValueSingleValueBase
onMissing, onNullMethods inherited from class io.deephaven.json.Value
allowMissing, array, field, skip
-
Constructor Details
-
InstantValue
public InstantValue()
-
-
Method Details
-
builder
-
standard
The standardInstantoptions. Allows missing and acceptsJsonValueTypes.stringOrNull().- Returns:
- the standard Instant options
-
strict
The strictInstantoptions. 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:
allowedTypesin classValue
-
dateTimeFormatter
The date-time formatter to use forparsing. The parsed result must support extractingINSTANT_SECONDSandNANO_OF_SECONDfields. Defaults toDateTimeFormatter.ISO_INSTANTfor java versions 12+, andDateTimeFormatter.ISO_OFFSET_DATE_TIMEotherwise. These defaults will parse offsets, converting to UTC as necessary.- Returns:
- the date-time formatter
-
walk
-