cn.signit.sdk.util
类 Case

java.lang.Object
  继承者 cn.signit.sdk.util.Case

public final class Case
extends Object

从以下版本开始:
1.0.2

方法摘要
static String to(String str, NamingStyle namingStyle)
          指定具体命名风格来生成相应命名风格的字符串.
static String toCapitalizeCamel(String str)
          大驼峰命名风格字符串
static String toHyphenLine(String str)
          连词符命名风格字符串
static String toKebab(String str)
          连词符命名风格字符串
static String toLowerCamel(String str)
          小驼峰命名风格字符串
static String toPascal(String str)
          帕斯卡命名风格字符串
static String toSnake(String str)
          蛇型命名风格字符串
static String toUnderline(String str)
          下划线命名风格字符串
static String toUnix(String str)
          下划线命名风格字符串
static String toUpperCamel(String str)
          大驼峰命名风格字符串
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

toUnderline

public static String toUnderline(String str)
下划线命名风格字符串

参数:
str - 待转换字符串
返回:
下划线风格字符串

toUnix

public static String toUnix(String str)
下划线命名风格字符串

参数:
str - 待转换字符串
返回:
下划线风格字符串

toSnake

public static String toSnake(String str)
蛇型命名风格字符串

参数:
str - 待转换字符串
返回:
蛇型命名风格字符串

toLowerCamel

public static String toLowerCamel(String str)
小驼峰命名风格字符串

参数:
str - 待转换字符串
返回:
小驼峰风格字符串

toCapitalizeCamel

public static String toCapitalizeCamel(String str)
大驼峰命名风格字符串

参数:
str - 待转换字符串
返回:
大驼峰风格字符串

toUpperCamel

public static String toUpperCamel(String str)
大驼峰命名风格字符串

参数:
str - 待转换字符串
返回:
大驼峰风格字符串

toPascal

public static String toPascal(String str)
帕斯卡命名风格字符串

参数:
str - 待转换字符串
返回:
帕斯卡风格字符串

toKebab

public static String toKebab(String str)
连词符命名风格字符串

参数:
str - 待转换字符串
返回:
连词符命名风格字符串

toHyphenLine

public static String toHyphenLine(String str)
连词符命名风格字符串

参数:
str - 待转换字符串
返回:
连词符命名风格字符串

to

public static String to(String str,
                        NamingStyle namingStyle)
指定具体命名风格来生成相应命名风格的字符串.

参数:
str - 待转换字符串. 若为null,则返回null.
namingStyle - 命名风格的枚举. 若namingStyle为null,CAMEL
返回:
namingStyle命名风格的字符串
从以下版本开始:
1.0.0


Copyright © 2019. All rights reserved.