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()

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-06-13
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2021-11-08
  • 2022-01-23
  • 2022-01-13
  • 2021-08-08
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案