类 StringUtils
java.lang.Object
com.dtflys.forest.utils.StringUtils
- 从以下版本开始:
- 2016-05-17
- 作者:
- gongjun[dt_flys@hotmail.com]
-
方法概要
修饰符和类型方法说明static Stringstatic Stringstatic String生成 boundary 字符串static StringgetGetterName(Method mtd) static boolean是否为空白字符串static booleanisEmpty(CharSequence text) static booleanisNotBlank(String text) 是否为非空白字符串,即isBlank(String)的逆否命题static booleanisNotEmpty(CharSequence text) static StringtoGetterName(String name) static String去掉开头空格
-
方法详细资料
-
isEmpty
-
isNotEmpty
-
isBlank
是否为空白字符串字符串为null,空串,或都是空格的情况为
true- 参数:
text- 字符串- 返回:
true: 是空白字符串,false: 不是空白字符串
-
isNotBlank
是否为非空白字符串,即isBlank(String)的逆否命题字符串为null,空串,或都是空格的情况为
false- 参数:
text- 字符串- 返回:
true: 不是空白字符串,false: 是空白字符串
-
getGetterName
-
toGetterName
-
trimBegin
去掉开头空格- 参数:
str- 源字符串- 返回:
- 去掉开头空格后的字符串
-
fromBytes
-
fromBytes
-
generateBoundary
生成 boundary 字符串- 返回:
- boundary 字符串
-