java.lang.Object
tools.jackson.databind.util.EnumValuesToWrite
- Since:
- 3.0.3
-
Method Summary
Modifier and TypeMethodDescriptionallEnumValuesFromName(MapperConfig<?> config) allEnumValuesFromToString(MapperConfig<?> config) static EnumValuesToWriteconstruct(MapperConfig<?> config, AnnotatedClass annotatedClass, EnumNamingStrategy enumNamingStrategy, Enum<?>[] enumConstants, String[] explicitNames0) enums()enumValueFromName(MapperConfig<?> config, Enum<?> en) enumValueFromToString(MapperConfig<?> config, Enum<?> en) explicitNameFor(Enum<?> en) Returns the explicit@JsonPropertyname for the given enum constant, ornullif none defined.intresolvedIndexFor(Enum<?> en) Returns the numeric index for the given enum constant derived from a numeric@JsonPropertyvalue, or-1if no numeric index is defined (either no@JsonPropertyor non-numeric value).
-
Method Details
-
construct
public static EnumValuesToWrite construct(MapperConfig<?> config, AnnotatedClass annotatedClass, EnumNamingStrategy enumNamingStrategy, Enum<?>[] enumConstants, String[] explicitNames0) -
enumClass
-
enums
-
enumValueFromName
-
allEnumValuesFromName
-
enumValueFromToString
-
allEnumValuesFromToString
-
resolvedIndexFor
Returns the numeric index for the given enum constant derived from a numeric@JsonPropertyvalue, or-1if no numeric index is defined (either no@JsonPropertyor non-numeric value).- Since:
- 3.2
-
explicitNameFor
Returns the explicit@JsonPropertyname for the given enum constant, ornullif none defined.- Since:
- 3.2
-