枚举类的使用
cool.scx.common.util.CaseUtils.CaseType
使用CaseUtils.CaseType的程序包
-
cool.scx.common.util中CaseUtils.CaseType的使用
修饰符和类型方法说明static CaseUtils.CaseType返回带有指定名称的该类的枚举常量。static CaseUtils.CaseType[]CaseUtils.CaseType.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同参数类型为CaseUtils.CaseType的cool.scx.common.util中的方法修饰符和类型方法说明static StringCaseUtils.convert(String str, CaseUtils.CaseType to, CaseUtils.CaseType from) 推断原来的命名是啥 并返回切割后的源字符串static StringCaseUtils.toCamel(String str, CaseUtils.CaseType caseType) 转换为驼峰命名法 getNameByAgestatic StringCaseUtils.toKebab(String str, CaseUtils.CaseType caseType) 转换为短横线命名法 get-name-by-agestatic StringCaseUtils.toPascal(String str, CaseUtils.CaseType caseType) 转换为匈牙利命名法 GetNameByAgestatic StringCaseUtils.toSnake(String str, CaseUtils.CaseType caseType) 转换为蛇形命名法 get_name_by_age