Enum Class InstantNumberValue.Format

java.lang.Object
java.lang.Enum<InstantNumberValue.Format>
io.deephaven.json.InstantNumberValue.Format
All Implemented Interfaces:
Serializable, Comparable<InstantNumberValue.Format>, java.lang.constant.Constable
Enclosing class:
InstantNumberValue

public static enum InstantNumberValue.Format extends Enum<InstantNumberValue.Format>
  • Enum Constant Details

    • EPOCH_SECONDS

      public static final InstantNumberValue.Format EPOCH_SECONDS
      Seconds from the epoch of 1970-01-01T00:00:00Z.
    • EPOCH_MILLIS

      public static final InstantNumberValue.Format EPOCH_MILLIS
      Milliseconds from the epoch of 1970-01-01T00:00:00Z.
    • EPOCH_MICROS

      public static final InstantNumberValue.Format EPOCH_MICROS
      Microseconds from the epoch of 1970-01-01T00:00:00Z.
    • EPOCH_NANOS

      public static final InstantNumberValue.Format EPOCH_NANOS
      Nanoseconds from the epoch of 1970-01-01T00:00:00Z.
  • Method Details

    • values

      public static InstantNumberValue.Format[] 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

      public static InstantNumberValue.Format valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • lenient

      public InstantNumberValue lenient(boolean allowDecimal)
      The lenient Instant number options. Allows missing. If allowDecimal, accepts JsonValueTypes.numberLike(), otherwise accepts JsonValueTypes.intLike().
      Parameters:
      allowDecimal - if decimals should be allowed
      Returns:
      the lenient Instant number options
    • standard

      public InstantNumberValue standard(boolean allowDecimal)
      The standard Instant number options. Allows missing. If allowDecimal, accepts JsonValueTypes.numberOrNull(), otherwise accepts JsonValueTypes.intOrNull().
      Parameters:
      allowDecimal - if decimals should be allowed
      Returns:
      the standard Instant number options
    • strict

      public InstantNumberValue strict(boolean allowDecimal)
      The strict Instant number options. Disallows missing. If allowDecimal, accepts JsonValueTypes.number(), otherwise accepts JsonValueTypes.int_().
      Parameters:
      allowDecimal - if decimals should be allowed
      Returns:
      the lenient Instant number options