public enum CaseStyle extends Enum<CaseStyle>
CaseStyle
"implementations" (in terms of methods such as
toCaseStyle(String)
) making use of the CaseStyleBuilder
.Enum Constant and Description |
---|
CAMEL_CASE |
KEBAB_CASE |
KEBAB_UPPER_CASE |
NONE |
PASCAL_CASE |
SNAKE_CASE |
SNAKE_UPPER_CASE |
Modifier and Type | Method and Description |
---|---|
String |
toCaseStyle(String aText)
Converts the given text into the according
CaseStyle . |
static CaseStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CaseStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaseStyle NONE
public static final CaseStyle CAMEL_CASE
public static final CaseStyle PASCAL_CASE
public static final CaseStyle SNAKE_CASE
public static final CaseStyle KEBAB_CASE
public static final CaseStyle SNAKE_UPPER_CASE
public static final CaseStyle KEBAB_UPPER_CASE
public static CaseStyle[] values()
for (CaseStyle c : CaseStyle.values()) System.out.println(c);
public static CaseStyle 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 nullCopyright © 2018. All rights reserved.