public static enum CamelCaseFormatter.UnformattingCase extends java.lang.Enum<CamelCaseFormatter.UnformattingCase>
Enum Constant and Description |
---|
FLATTENED
Each word will be transformed to its upper or lower case form upon
unformatting from camel case, according to the following rules:
Words which contain no lower case characters will retain their upper
case form.
Words which contain at least one lower case character will be
transformed to their lower case form.
|
LOWER
Each word will be transformed to its lower case form upon unformatting
from camel case.
|
PRESERVED
The original case of each character will be preserved upon unformatting
from camel case.
|
UPPER
Each word will be transformed to its upper case form upon unformatting
from camel case.
|
Modifier and Type | Method and Description |
---|---|
static CamelCaseFormatter.UnformattingCase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CamelCaseFormatter.UnformattingCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CamelCaseFormatter.UnformattingCase UPPER
public static final CamelCaseFormatter.UnformattingCase LOWER
public static final CamelCaseFormatter.UnformattingCase PRESERVED
public static final CamelCaseFormatter.UnformattingCase FLATTENED
Bear in mind this may produce unexpected results for single character words.
public static CamelCaseFormatter.UnformattingCase[] values()
for (CamelCaseFormatter.UnformattingCase c : CamelCaseFormatter.UnformattingCase.values()) System.out.println(c);
public static CamelCaseFormatter.UnformattingCase valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null