Enum Class SerdeConfiguration.Feature

java.lang.Object
java.lang.Enum<SerdeConfiguration.Feature>
io.micronaut.serde.config.SerdeConfiguration.Feature
All Implemented Interfaces:
Serializable, Comparable<SerdeConfiguration.Feature>, Constable
Enclosing interface:
SerdeConfiguration

public static enum SerdeConfiguration.Feature extends Enum<SerdeConfiguration.Feature>
Serialization format features.
Since:
3.0
Author:
gkrocher
  • Enum Constant Details

    • WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS

      public static final SerdeConfiguration.Feature WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS
      Write numeric date/time timestamps using nanosecond precision when timestamps are enabled.
    • WRITE_DATES_WITH_ZONE_ID

      public static final SerdeConfiguration.Feature WRITE_DATES_WITH_ZONE_ID
      Include the zone id when serializing date/time values that support zone information.
    • WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED

      public static final SerdeConfiguration.Feature WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED
      Serialize single-element arrays and iterable values as the contained value instead of an array.
    • WRITE_SORTED_MAP_ENTRIES

      public static final SerdeConfiguration.Feature WRITE_SORTED_MAP_ENTRIES
      Serialize map entries ordered by key.
  • Method Details

    • values

      public static SerdeConfiguration.Feature[] 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 SerdeConfiguration.Feature 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