StringUtils中isEmpty的用法

时间:2019-12-02 13:11:51   收藏:0   阅读:232

isEmpty 等价于:

str == null || str.length == 0

 

isBlank 等价于:

str == null || str.length == 0 || str.trim().length == 0

 

StringUtils方法的操作对象是java.lang.String类型的对象

 

StringUtils中一共有130多个方法,并且都是static的,所以我们可以这样调用StringUtils.xxx()

原文:https://www.cnblogs.com/python924/p/11969801.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!