Package cool.scx.common.util
Enum Class CaseUtils.CaseType
- All Implemented Interfaces:
Serializable,Comparable<CaseUtils.CaseType>,Constable
- Enclosing class:
CaseUtils
CaseType
- Version:
- 0.0.8
- Author:
- scx567888
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription空白字符串驼峰命名法 getNameByAge短横线命名法 get-name-by-age匈牙利命名法 GetNameByAge蛇形命名法 get_name_by_age -
Method Summary
Modifier and TypeMethodDescriptionString[]static CaseUtils.CaseTypeReturns the enum constant of this class with the specified name.static CaseUtils.CaseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CAMEL_CASE
驼峰命名法 getNameByAge -
PASCAL_CASE
匈牙利命名法 GetNameByAge -
KEBAB_CASE
短横线命名法 get-name-by-age -
SNAKE_CASE
蛇形命名法 get_name_by_age -
BLANK
空白字符串
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSourceStrings
-
getString
-