isNotEmpty(str)等价于 str != null && str.length > 0
isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0
同理
isEmpty 等价于 str == null || str.length == 0
isBlank 等价于 str == null || str.length == 0 || str.trim().length == 0
str.length > 0 && str.trim().length > 0 ---> str.length > 0StringUtils中 isNotEmpty 和isNotBlank的区别
最新推荐文章于 2025-09-09 11:29:33 发布
458

被折叠的 条评论
为什么被折叠?



