Enum Class SerdeConfiguration.Feature
- All Implemented Interfaces:
Serializable, Comparable<SerdeConfiguration.Feature>, Constable
- Enclosing interface:
SerdeConfiguration
Serialization format features.
- Since:
- 3.0
- Author:
- gkrocher
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrite numeric date/time timestamps using nanosecond precision when timestamps are enabled.Include the zone id when serializing date/time values that support zone information.Serialize single-element arrays and iterable values as the contained value instead of an array.Serialize map entries ordered by key. -
Method Summary
Modifier and TypeMethodDescriptionstatic SerdeConfiguration.FeatureReturns the enum constant of this class with the specified name.static SerdeConfiguration.Feature[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS
Write numeric date/time timestamps using nanosecond precision when timestamps are enabled. -
WRITE_DATES_WITH_ZONE_ID
Include the zone id when serializing date/time values that support zone information. -
WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED
Serialize single-element arrays and iterable values as the contained value instead of an array. -
WRITE_SORTED_MAP_ENTRIES
Serialize map entries ordered by key.
-
-
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
-