|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.flatpack.util.FPStringUtils
public final class FPStringUtils
Thanks to the Apache Commons Contributors.
Method Summary | |
---|---|
static boolean |
isBlank(java.lang.String str)
Checks if a String is whitespace, empty ("") or null. |
static boolean |
isNotBlank(java.lang.String str)
Checks if a String is not empty (""), not null and not whitespace only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isBlank(java.lang.String str)
Checks if a String is whitespace, empty ("") or null.
PZStringUtils.isBlank(null) = true PZStringUtils.isBlank("") = true PZStringUtils.isBlank(" ") = true PZStringUtils.isBlank("bob") = false PZStringUtils.isBlank(" bob ") = false
str
- the String to check, may be null
true
if the String is null, empty or whitespacepublic static boolean isNotBlank(java.lang.String str)
Checks if a String is not empty (""), not null and not whitespace only.
PZStringUtils.isNotBlank(null) = false PZStringUtils.isNotBlank("") = false PZStringUtils.isNotBlank(" ") = false PZStringUtils.isNotBlank("bob") = true PZStringUtils.isNotBlank(" bob ") = true
str
- the String to check, may be null
true
if the String is
not empty and not null and not whitespace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |