public enum NameStyle extends Enum<NameStyle>
| Enum Constant and Description |
|---|
CAMEL_CASE
小驼峰命名法
|
LOWER_CASE
转换为小写
|
ORIGIN
和属性名保持一致
|
PASCAL_CASE
大驼峰命名法
|
SCREAMING_SNAKE_CASE
驼峰转下划线,单词小写
|
SNAKE_CASE
驼峰转下划线,单词小写
|
UPPER_CASE
转换为大写
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
transform(String s)
进行格式化
|
static NameStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameStyle ORIGIN
public static final NameStyle SNAKE_CASE
public static final NameStyle SCREAMING_SNAKE_CASE
public static final NameStyle UPPER_CASE
public static final NameStyle LOWER_CASE
public static final NameStyle PASCAL_CASE
public static final NameStyle CAMEL_CASE
public static NameStyle[] values()
for (NameStyle c : NameStyle.values()) System.out.println(c);
public static NameStyle 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–2021. All rights reserved.