@FunctionalInterface public interface SettingNamingConvention
Java fields are usually lowerCamelCase, while developers might want their configuration to use snake_case or lowercase.
Classes implementing this interface are required to make the conversion from lowerCamelCase to another format.
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
CAMEL_WORD_START |
static SettingNamingConvention |
LOWERCASE
A naming convention that converts all characters to lowercase.
|
static SettingNamingConvention |
NONE
A naming convention that does not modify any names.
|
static SettingNamingConvention |
SNAKE_CASE
A naming convention that converts java-styled
lowerCamelCase names and Proper case names to snake_case. |
| Modifier and Type | Method and Description |
|---|---|
String |
name(String name)
For the given
lowerCamelCase name, returns a name using the convention
defined by this object. |
static final SettingNamingConvention LOWERCASE
static final SettingNamingConvention NONE
static final Pattern CAMEL_WORD_START
static final SettingNamingConvention SNAKE_CASE
lowerCamelCase names and Proper case names to snake_case.