程序包 cool.scx.util
类 CaseUtils
java.lang.Object
cool.scx.util.CaseUtils
命名方法转换工具类
提供 驼峰 匈牙利 短横线 及 蛇形命名法的互相转换
提供 驼峰 匈牙利 短横线 及 蛇形命名法的互相转换
- 版本:
- 0.0.1
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static String转换为驼峰命名法 getNameByAgestatic String转换为驼峰命名法 getNameByAgestatic String转换为短横线命名法 get-name-by-agestatic String转换为短横线命名法 get-name-by-agestatic String转换为匈牙利命名法 GetNameByAgestatic String转换为匈牙利命名法 GetNameByAgestatic String转换为蛇形命名法 get_name_by_agestatic String转换为蛇形命名法 get_name_by_age
-
构造器详细资料
-
CaseUtils
public CaseUtils()
-
-
方法详细资料
-
toCamel
转换为驼峰命名法 getNameByAge- 参数:
str- s- 返回:
- r
-
toPascal
转换为匈牙利命名法 GetNameByAge- 参数:
str- s- 返回:
- r
-
toKebab
转换为短横线命名法 get-name-by-age- 参数:
str- s- 返回:
- r
-
toSnake
转换为蛇形命名法 get_name_by_age- 参数:
str- s- 返回:
- r
-
toCamel
转换为驼峰命名法 getNameByAge- 参数:
str- scaseType- aCaseTypeobject- 返回:
- r
-
toPascal
转换为匈牙利命名法 GetNameByAge- 参数:
str- scaseType- aCaseTypeobject- 返回:
- r
-
toKebab
转换为短横线命名法 get-name-by-age- 参数:
str- scaseType- aCaseTypeobject- 返回:
- r
-
toSnake
转换为蛇形命名法 get_name_by_age- 参数:
str- scaseType- aCaseTypeobject- 返回:
- r
-