public static class EnumNamingStrategies.LowerCamelCaseStrategy extends EnumNamingStrategies.DelegatingEnumNamingStrategy
An implementation of EnumNamingStrategy
that converts enum names in the typical upper
snake case format to lower camel case format. This implementation follows three rules
described below.
WARNING: Naming conversion conflicts caused by underscore usage should be handled by client.
e.g. Both PEANUT_BUTTER
, PEANUT__BUTTER
are converted into "peanutButter".
And "peanutButter" will be deserialized into enum with smaller Enum.ordinal()
value.
This results in the following example conversions:
Modifier and Type | Field and Description |
---|---|
static EnumNamingStrategies.LowerCamelCaseStrategy |
INSTANCE
An instance of
EnumNamingStrategies.LowerCamelCaseStrategy for reuse. |
Modifier | Constructor and Description |
---|---|
protected |
LowerCamelCaseStrategy() |
convertEnumToExternalName, toBeanName
public static final EnumNamingStrategies.LowerCamelCaseStrategy INSTANCE
EnumNamingStrategies.LowerCamelCaseStrategy
for reuse.Copyright © 2008–2025 FasterXML. All rights reserved.