public enum FieldNamingStrategyEnum extends Enum<FieldNamingStrategyEnum>
Enum Constant and Description |
---|
CAMEL_CASE
驼峰命名法,即:小驼峰命名法
|
KEBAB_CASE
中划线命名法
|
LOWER_CAMEL_CASE
小驼峰命名法
|
PASCAL_CASE
帕斯卡命名法,即:大驼峰命名法
|
SNAKE_CASE
下划线命名法
|
UPPER_CAMEL_CASE
大驼峰命名法
|
Modifier and Type | Method and Description |
---|---|
static FieldNamingStrategyEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldNamingStrategyEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldNamingStrategyEnum CAMEL_CASE
CAMEL_CASE策略,Java对象属性:personId,序列化后属性:persionId
public static final FieldNamingStrategyEnum LOWER_CAMEL_CASE
public static final FieldNamingStrategyEnum UPPER_CAMEL_CASE
public static final FieldNamingStrategyEnum PASCAL_CASE
PASCAL_CASE策略,Java对象属性:personId,序列化后属性:PersonId
public static final FieldNamingStrategyEnum SNAKE_CASE
SNAKE_CASE策略,Java对象属性:personId,序列化后属性:person_id
public static final FieldNamingStrategyEnum KEBAB_CASE
KEBAB_CASE策略,Java对象属性:personId,序列化后属性:person-id
public static FieldNamingStrategyEnum[] values()
for (FieldNamingStrategyEnum c : FieldNamingStrategyEnum.values()) System.out.println(c);
public static FieldNamingStrategyEnum 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 © 2022 Pivotal Software, Inc.. All rights reserved.