StringUtils中 isNotEmpty,isNotBlank,isEmpty,isBlank的区别与使用
StringUtils中有很多判断字符串的方法,其中
StringUtil.isNotEmpty(str)等价于 str != null && str.length > 0。
isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0。
同理:...
原创
2019-08-07 14:40:25 ·
455 阅读 ·
0 评论