public enum KeyConversionEnum extends Enum<KeyConversionEnum>
| Enum Constant and Description |
|---|
hump2UnderscoreCapital
驼峰转下划线——大写
|
hump2UnderscoreLower
驼峰转下划线——小写
|
nothing
不需要转换
|
| Modifier and Type | Method and Description |
|---|---|
KeyConversionStrategy |
getKeyConversionStrategy() |
String |
getStrategy() |
static KeyConversionEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyConversionEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyConversionEnum hump2UnderscoreLower
public static final KeyConversionEnum hump2UnderscoreCapital
public static final KeyConversionEnum nothing
public static KeyConversionEnum[] values()
for (KeyConversionEnum c : KeyConversionEnum.values()) System.out.println(c);
public static KeyConversionEnum 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 nullpublic String getStrategy()
public KeyConversionStrategy getKeyConversionStrategy()
Copyright © 2020. All rights reserved.