public final class FPStringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBlank(String str)
Checks if a String is whitespace, empty ("") or null.
|
static boolean |
isNotBlank(String str)
Checks if a String is not empty (""), not null and not whitespace only.
|
public static boolean isBlank(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 nulltrue if the String is null, empty or whitespacepublic static boolean isNotBlank(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 nulltrue if the String is
not empty and not null and not whitespaceCopyright © 2006–2021 Appendium - Portfolio Financing Platform. All rights reserved.