函数、方法
姜迪 男
如有错误,敬请指出,感激不尽。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
StringUtils
isEmpty(String str) 是否为空,空格字符为false isNotEmpty(String str) 是否为非空,空格字符为true isBlank(String str) 是否为空,空格字符为true isNotBlank(String str) 是否为非空,空格字符为false trim(String str)去除字符串两端的控制符,空字符串、null 返回 null trimToEmpty(String str) 去除字符串两端的控制符,空字符串、null 返回"" stripToNu转载 2021-04-01 14:15:08 · 264 阅读 · 0 评论 -
CollectionUtils工具类的常用方法
集合判断: 例1: 判断集合是否为空: CollectionUtils.isEmpty(null): true CollectionUtils.isEmpty(new ArrayList()): true CollectionUtils.isEmpty({a,b}): false 例2: 判断集合是否不为空: CollectionUtils.isNotEmpty(null): false CollectionUtils.isNotEmpty(new ArrayList()): f转载 2021-04-01 14:06:26 · 282 阅读 · 0 评论 -
to UpperCase()和to lowerCase()
to UpperCase()把小写字符串转化为大写字符串,原字符串不变。 to lowerCase()把大写字符串转化为小写字符串,原字符串不变。原创 2021-03-31 16:40:52 · 1059 阅读 · 0 评论
分享