Fork me on GitHub

isNotEmpty 与 isNotBlank 的区别

 

isNotEmpty(str)等价于 str != null && str.length > 0

 

isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0

 

posted @ 2018-11-13 14:46  youxiu326  阅读(207)  评论(0编辑  收藏  举报