| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final CaseFormat | LOWER_CAMEL
Java variable naming convention, e.g., "lowerCamel". |
| public static final CaseFormat | LOWER_HYPHEN
Hyphenated variable naming convention, e.g., "lower-hyphen". |
| public static final CaseFormat | LOWER_UNDERSCORE
C++ variable naming convention, e.g., "lower_underscore". |
| public static final CaseFormat | UPPER_CAMEL
Java and C++ class naming convention, e.g., "UpperCamel". |
| public static final CaseFormat | UPPER_UNDERSCORE
Java and C++ constant naming convention, e.g., "UPPER_UNDERSCORE". |
| private final CharMatcher | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| public Converter | converterTo(CaseFormat targetFormat)
Returns a serializable |
| private static String | |
| pack-priv String | |
| pack-priv abstract String | |
| public final String | to(CaseFormat format, String str)
Converts the specified |
| public static CaseFormat | |
| public static CaseFormat[] |
| LOWER_CAMEL | back to summary |
|---|---|
| public static final CaseFormat LOWER_CAMEL Java variable naming convention, e.g., "lowerCamel". | |
| LOWER_HYPHEN | back to summary |
|---|---|
| public static final CaseFormat LOWER_HYPHEN Hyphenated variable naming convention, e.g., "lower-hyphen". | |
| LOWER_UNDERSCORE | back to summary |
|---|---|
| public static final CaseFormat LOWER_UNDERSCORE C++ variable naming convention, e.g., "lower_underscore". | |
| UPPER_CAMEL | back to summary |
|---|---|
| public static final CaseFormat UPPER_CAMEL Java and C++ class naming convention, e.g., "UpperCamel". | |
| UPPER_UNDERSCORE | back to summary |
|---|---|
| public static final CaseFormat UPPER_UNDERSCORE Java and C++ constant naming convention, e.g., "UPPER_UNDERSCORE". | |
| wordBoundary | back to summary |
|---|---|
| private final CharMatcher wordBoundary | |
| wordSeparator | back to summary |
|---|---|
| private final String wordSeparator | |
| CaseFormat | back to summary |
|---|---|
| private CaseFormat(CharMatcher wordBoundary, String wordSeparator) | |
| convert | back to summary |
|---|---|
| pack-priv String convert(CaseFormat format, String s) Enum values can override for performance reasons. | |
| converterTo | back to summary |
|---|---|
| public Converter Returns a serializable
| |
| firstCharOnlyToUpper | back to summary |
|---|---|
| private static String firstCharOnlyToUpper(String word) | |
| normalizeFirstWord | back to summary |
|---|---|
| pack-priv String normalizeFirstWord(String word) | |
| normalizeWord | back to summary |
|---|---|
| pack-priv abstract String normalizeWord(String word) | |
| to | back to summary |
|---|---|
| public final String to(CaseFormat format, String str) Converts the specified | |
| valueOf | back to summary |
|---|---|
| public static CaseFormat valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CaseFormat[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final CaseFormat | |
| private final CaseFormat |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected String | doBackward(String
the instance to convert; will never be null s)Implements abstract com. b as an instance of type A.
|
| protected String | doForward(String
the instance to convert; will never be null s)Implements abstract com. a as an instance of type B.
|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides com. Implements com. |
| public int | |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sourceFormat | back to summary |
|---|---|
| private final CaseFormat sourceFormat | |
| targetFormat | back to summary |
|---|---|
| private final CaseFormat targetFormat | |
| StringConverter | back to summary |
|---|---|
| pack-priv StringConverter(CaseFormat sourceFormat, CaseFormat targetFormat) | |
| doBackward | back to summary |
|---|---|
| protected String doBackward(String s) Implements abstract com. Doc from com. Returns a representation of | |
| doForward | back to summary |
|---|---|
| protected String doForward(String s) Implements abstract com. Doc from com. Returns a representation of | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides com. Implements com. Doc from com. Indicates whether another object is equal to this converter. Most implementations will have no reason to override the behavior of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |