Uses of Class
com.fasterxml.jackson.databind.util.EnumValues
Packages that use EnumValues
Package
Description
Utility classes for Mapper package.
-
Uses of EnumValues in com.fasterxml.jackson.databind.ser.std
Fields in com.fasterxml.jackson.databind.ser.std declared as EnumValuesModifier and TypeFieldDescriptionprotected final EnumValues
EnumSerializer._values
This map contains pre-resolved values (since there are ways to customize actual String constants to use) to use as serializations.protected final EnumValues
StdKeySerializers.EnumKeySerializer._values
protected final EnumValues
EnumSerializer._valuesByEnumNaming
Map with key as converted property class defined implementation ofEnumNamingStrategy
and with value as Enum names collected usingEnum.name()
.protected final EnumValues
StdKeySerializers.EnumKeySerializer._valuesByEnumNaming
Map with key as converted property class defined implementation ofEnumNamingStrategy
and with value as Enum names collected usingEnum.name()
.Methods in com.fasterxml.jackson.databind.ser.std that return EnumValuesModifier and TypeMethodDescriptionprotected static EnumValues
EnumSerializer.constructEnumNamingStrategyValues
(SerializationConfig config, Class<Enum<?>> enumClass, AnnotatedClass annotatedClass) Factory method used to resolve an instance ofEnumValues
withEnumNamingStrategy
applied for the target class.EnumSerializer.getEnumValues()
Methods in com.fasterxml.jackson.databind.ser.std with parameters of type EnumValuesModifier and TypeMethodDescriptionStdKeySerializers.EnumKeySerializer.construct
(Class<?> enumType, EnumValues enumValues) StdKeySerializers.EnumKeySerializer.construct
(Class<?> enumType, EnumValues enumValues, EnumValues valuesByEnumNaming) Constructors in com.fasterxml.jackson.databind.ser.std with parameters of type EnumValuesModifierConstructorDescriptionprotected
EnumKeySerializer
(Class<?> enumType, EnumValues values) protected
EnumKeySerializer
(Class<?> enumType, EnumValues values, EnumValues valuesByEnumNaming) EnumSerializer
(EnumValues v, Boolean serializeAsIndex) EnumSerializer
(EnumValues v, Boolean serializeAsIndex, EnumValues valuesByEnumNaming) -
Uses of EnumValues in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util that return EnumValuesModifier and TypeMethodDescriptionstatic EnumValues
static EnumValues
EnumValues.construct
(SerializationConfig config, Class<Enum<?>> enumClass) NOTE: do NOT call this if configuration may change, and choice between toString() and name() might change dynamically.static EnumValues
EnumValues.construct
(Class<Enum<?>> enumClass, com.fasterxml.jackson.core.SerializableString[] externalValues) static EnumValues
EnumValues.constructFromName
(MapperConfig<?> config, Class<Enum<?>> enumClass) static EnumValues
EnumValues.constructFromToString
(MapperConfig<?> config, Class<Enum<?>> enumClass) static EnumValues
EnumValues.constructUsingEnumNamingStrategy
(MapperConfig<?> config, Class<Enum<?>> enumClass, EnumNamingStrategy namingStrategy) Returns String serializations of Enum name using an instance ofEnumNamingStrategy
.