I feel that the writing style is different depending on the person, so I thought I wanted to unify it. Returns false when the String is empty, just spaces, or null.
StringUtils.isNotBlank(String str)
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
There are many other useful things. https://www.sejuku.net/blog/19323 ↑ Although it is summarized by Samurai Blog, I definitely want to actively look at the official as an engineer's edge. ↓ Official https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html
Recommended Posts