Enum Class DeserializationConfiguration.Feature
java.lang.Object
java.lang.Enum<DeserializationConfiguration.Feature>
io.micronaut.serde.config.DeserializationConfiguration.Feature
- All Implemented Interfaces:
Serializable, Comparable<DeserializationConfiguration.Feature>, Constable
- Enclosing interface:
DeserializationConfiguration
public static enum DeserializationConfiguration.Feature
extends Enum<DeserializationConfiguration.Feature>
Deserialization format features.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatch bean property names without considering case.Match scalar values, such as enum names, without considering case.Accept a scalar JSON value as a single-element array or collection.Adjust date/time values to the configured context time zone during deserialization.Interpret numeric date/time timestamps as nanoseconds when timestamps are enabled.Deserialize unknown enum values asnull.Deserialize unknown enum values using the enum constant marked as the default value. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DeserializationConfiguration.Feature[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPT_SINGLE_VALUE_AS_ARRAY
Accept a scalar JSON value as a single-element array or collection. -
ACCEPT_CASE_INSENSITIVE_PROPERTIES
Match bean property names without considering case. -
READ_UNKNOWN_ENUM_VALUES_AS_NULL
Deserialize unknown enum values asnull. -
READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE
public static final DeserializationConfiguration.Feature READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUEDeserialize unknown enum values using the enum constant marked as the default value. -
READ_DATE_TIMESTAMPS_AS_NANOSECONDS
Interpret numeric date/time timestamps as nanoseconds when timestamps are enabled. -
ACCEPT_CASE_INSENSITIVE_VALUES
Match scalar values, such as enum names, without considering case. -
ADJUST_DATES_TO_CONTEXT_TIME_ZONE
Adjust date/time values to the configured context time zone during deserialization.
-
-
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
-