protected static enum ConfigBuilder.NamingConvention extends Enum<ConfigBuilder.NamingConvention>
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
normalize(Map<String,String> map)
Normalize the key value of the map using the class
normalize(String) method. |
abstract String |
normalize(String key) |
static ConfigBuilder.NamingConvention |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigBuilder.NamingConvention[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigBuilder.NamingConvention DOT
public static final ConfigBuilder.NamingConvention ENV_VAR
public static ConfigBuilder.NamingConvention[] values()
for (ConfigBuilder.NamingConvention c : ConfigBuilder.NamingConvention.values()) System.out.println(c);
public static ConfigBuilder.NamingConvention valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Map<String,String> normalize(@Nonnull Map<String,String> map)
normalize(String)
method.map
- The map to normalizenormalize(String)