判断字符串为空方法(括号为注释,StringUtils的学习)

StringUtils.isNotBlank("字符串")
( Checks if a CharSequence is not empty (""), not null and not whitespace only.
  StringUtils.isNotBlank(null) = false
  StringUtils.isNotBlank("") = false
  StringUtils.isNotBlank(" ") = false
  StringUtils.isNotBlank("bob") = true
  StringUtils.isNotBlank(" bob ") = true )

posted on 2018-10-08 15:47  才小有  阅读(738)  评论(0编辑  收藏  举报

导航