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  阅读(218)  评论(0)    收藏  举报