RecursiveComparisonIntrospectionStrategy that transforms snake case field names into camel case.
The normalization also normalize uppercase acronyms by keeping only the first acronym letter uppercase so that
profile_url and profileURL can be matched, both being normalized to profileUrl.
| Modifier and Type | Field and Description |
|---|---|
| public static final ComparingSnakeOrCamelCaseFields |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDescription()
Overrides org. Overrides default org. |
| private static String | Returns: the normalized namethe name to normalize name)Normalizes uppercase acronyms by keeping only the first acronym letter uppercase, ex: |
| public String | Returns: camel case version of the field namethe field name to normalize name)Implements abstract org. |
| COMPARING_SNAKE_OR_CAMEL_CASE_FIELDS | back to summary |
|---|---|
| public static final ComparingSnakeOrCamelCaseFields COMPARING_SNAKE_OR_CAMEL_CASE_FIELDS | |
| ComparingSnakeOrCamelCaseFields | back to summary |
|---|---|
| public ComparingSnakeOrCamelCaseFields() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Overrides org. Overrides default org. Doc from org. Returns a human-readable description of the strategy to be used in error messages.
The default implementation returns | |
| normalizeAcronyms | back to summary |
|---|---|
| private static String normalizeAcronyms(String name) Normalizes uppercase acronyms by keeping only the first acronym letter uppercase, ex: | |
| normalizeFieldName | back to summary |
|---|---|
| public String normalizeFieldName(String name) Implements abstract org. Transforms snake case field names into camel case (leave camel case fields as is).
For example, this allows to compare | |