类 StringUtils
java.lang.Object
com.github.aqiu202.util.StringUtils
- 作者:
- aqiu 2020/12/13 0:02
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringcamelToUnderline(String name) 驼峰法转下划线static String驼峰法转下划线然后大写static Stringcapitalize(String str) static booleanequals(CharSequence cs1, CharSequence cs2) static booleanequalsAny(CharSequence string, CharSequence... searchStrings) static booleanequalsAnyIgnoreCase(CharSequence string, CharSequence... searchStrings) static booleanequalsIgnoreCase(CharSequence cs1, CharSequence cs2) static booleanhasText(CharSequence str) static booleanisBlank(CharSequence str) static booleanisEmpty(CharSequence str) static booleanisNotBlank(CharSequence str) static booleanisNotEmpty(CharSequence str) static StringstringFormat(String text, Object... parameter) 占位符替换static StringstringFormat(String text, Map<String, Object> parameter) 占位符替换static StringstringFormatWithNull(String text, Map<?, ?> parameter, String nullValueReplacement) 占位符替换static Stringuncapitalize(String str) static StringunderlineToCamel(String name) 下划线转驼峰
-
字段详细资料
-
构造器详细资料
-
StringUtils
public StringUtils()
-
-
方法详细资料
-
isEmpty
-
hasText
-
isNotEmpty
-
isBlank
-
isNotBlank
-
equals
-
equalsAny
-
equalsAnyIgnoreCase
-
equalsIgnoreCase
-
camelToUnderline
驼峰法转下划线- 参数:
name- 字段- 返回:
- 下划线格式字段
-
camelToUnderlineAndToUpperCase
驼峰法转下划线然后大写- 参数:
name- 字段名称- 返回:
- 转换后的大写字段名称
-
underlineToCamel
下划线转驼峰- 参数:
name- 字段名称- 返回:
- 转换后的驼峰格式字段名称
-
capitalize
-
uncapitalize
-
stringFormat
占位符替换- 参数:
text- 字符串parameter- 替换参数- 返回:
- 替换后的字符串
-
stringFormat
占位符替换- 参数:
text- 字符串parameter- 替换参数- 返回:
- 替换后的字符串
-
stringFormatWithNull
public static String stringFormatWithNull(String text, Map<?, ?> parameter, String nullValueReplacement) 占位符替换- 参数:
text- 字符串parameter- 替换参数nullValueReplacement- 空值的默认值- 返回:
- 替换后的字符串
-