1.StringUtils.isBlank(CharSequence cs)
boolean org.apache.commons.lang3.StringUtils.isBlank(CharSequence cs)
Checks if a CharSequence is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
本文出自 “大程熙的小角落” 博客,请务必保留此出处http://dachengxi.blog.51cto.com/4658215/1633954
原文地址:http://dachengxi.blog.51cto.com/4658215/1633954