Package io.deephaven.json
Enum Class InstantNumberValue.Format
- All Implemented Interfaces:
Serializable,Comparable<InstantNumberValue.Format>,java.lang.constant.Constable
- Enclosing class:
- InstantNumberValue
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMicroseconds from the epoch of 1970-01-01T00:00:00Z.Milliseconds from the epoch of 1970-01-01T00:00:00Z.Nanoseconds from the epoch of 1970-01-01T00:00:00Z.Seconds from the epoch of 1970-01-01T00:00:00Z. -
Method Summary
Modifier and TypeMethodDescriptionlenient(boolean allowDecimal) The lenientInstantnumber options.standard(boolean allowDecimal) The standardInstantnumber options.strict(boolean allowDecimal) The strictInstantnumber options.static InstantNumberValue.FormatReturns the enum constant of this class with the specified name.static InstantNumberValue.Format[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EPOCH_SECONDS
Seconds from the epoch of 1970-01-01T00:00:00Z. -
EPOCH_MILLIS
Milliseconds from the epoch of 1970-01-01T00:00:00Z. -
EPOCH_MICROS
Microseconds from the epoch of 1970-01-01T00:00:00Z. -
EPOCH_NANOS
Nanoseconds from the epoch of 1970-01-01T00:00:00Z.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
lenient
The lenientInstantnumber options. Allows missing. IfallowDecimal, acceptsJsonValueTypes.numberLike(), otherwise acceptsJsonValueTypes.intLike().- Parameters:
allowDecimal- if decimals should be allowed- Returns:
- the lenient Instant number options
-
standard
The standardInstantnumber options. Allows missing. IfallowDecimal, acceptsJsonValueTypes.numberOrNull(), otherwise acceptsJsonValueTypes.intOrNull().- Parameters:
allowDecimal- if decimals should be allowed- Returns:
- the standard Instant number options
-
strict
The strictInstantnumber options. Disallows missing. IfallowDecimal, acceptsJsonValueTypes.number(), otherwise acceptsJsonValueTypes.int_().- Parameters:
allowDecimal- if decimals should be allowed- Returns:
- the lenient Instant number options
-