StringUtils的isEmpty与isBlank的区别
isEmpty相当于 a=="" || a==null
isBlank判断字符串是否为空或长度为0或由空白符(whitespace)构成
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" “) = true
StringUtils.isBlank(” “) = true
Str...
转载
2018-10-10 18:09:38 ·
297 阅读 ·
0 评论