public final class Strings
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Strings() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBlank(java.lang.String s)
Checks whether a String is null, empty or blank.
|
static boolean |
isEmpty(java.lang.String s)
Checks whether a String is null or empty.
|
static boolean |
isNotEmpty(java.lang.String s)
Checks whether a String is neither null nor empty.
|
static boolean |
isNull(java.lang.String s)
Checks whether a String is null.
|
static java.lang.String |
toLowerCase(java.lang.String s)
null-safe lower-case conversion of a String.
|
static java.lang.String |
trim(java.lang.String s)
Removes the whitespace at the beginning and end of a String.
|
static java.lang.String |
trimToEmpty(java.lang.String s)
Removes the whitespace at the beginning and end of a String.
|
static java.lang.String |
trimToNull(java.lang.String s)
Removes the whitespace at the beginning and end of a String.
|
public static boolean isNull(java.lang.String s)
s
- The String to checkpublic static boolean isEmpty(java.lang.String s)
s
- The String to checkpublic static boolean isNotEmpty(java.lang.String s)
s
- The String to checkpublic static boolean isBlank(java.lang.String s)
s
- The String to checkpublic static java.lang.String trim(java.lang.String s)
s
- The String to trim, may be nullpublic static java.lang.String trimToNull(java.lang.String s)
s
- The String to trim, may be nullpublic static java.lang.String trimToEmpty(java.lang.String s)
s
- The String to trim, may be nullpublic static java.lang.String toLowerCase(java.lang.String s)
s
- The String to process, may be null