isNotEmpty 与 isNotBlank 的区别

 

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

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

猜你喜欢

转载自blog.csdn.net/youxiu326/article/details/84028725
今日推荐