public interface StringUtils
Modifier and Type | Method and Description |
---|---|
static String |
coalesce(String... s)
Evaluates the arguments in order and returns the current value of the
first expression that initially doesn't evaluate to null, empty or whitespace.
|
static boolean |
isNullOrEmpty(String s)
Indicates whether the specified string is null or an empty string ("").
|
static boolean |
isNullOrWhiteSpace(String s)
Indicates whether a specified string is null, empty, or consists only of white-space characters.
|
static boolean isNullOrEmpty(String s)
s
- The string to test.static boolean isNullOrWhiteSpace(String s)
s
- The string to test.static String coalesce(String... s)
s
- Array of string objects