| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true when the String is neither null nor empty, false otherwiseThe String to check s)Checks whether a String is neither null nor empty. |
| public static boolean | |
| public static String | Returns: null when the input String is null, the String in lower-case otherwiseThe String to process, may be null s)null-safe lower-case conversion of a String. |
| public static String | |
| public static String | Returns: null when the input String is null or does only contain whitespace, the trimmed String otherwiseThe String to trim, may be null s)Removes the whitespace at the beginning and end of a String. |
| public static String | Returns: null when the input String is null or does only contain whitespace, the trimmed String otherwiseThe String to trim, may be null s)Removes the whitespace at the beginning and end of a String. |
| Strings | back to summary |
|---|---|
| private Strings() | |
| isBlank | back to summary |
|---|---|
| public static boolean isBlank(final String s) Checks whether a String is null, empty or blank.
| |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(final String s) Checks whether a String is null or empty.
| |
| isNotEmpty | back to summary |
|---|---|
| public static boolean isNotEmpty(final String s) Checks whether a String is neither null nor empty.
| |
| isNull | back to summary |
|---|---|
| public static boolean isNull(final String s) Checks whether a String is null.
| |
| toLowerCase | back to summary |
|---|---|
| public static String toLowerCase(final String s) null-safe lower-case conversion of a String. | |
| trim | back to summary |
|---|---|
| public static String trim(final String s) Removes the whitespace at the beginning and end of a String. | |
| trimToEmpty | back to summary |
|---|---|
| public static String trimToEmpty(final String s) Removes the whitespace at the beginning and end of a String. When the String only contains whitespace, it returns null. | |
| trimToNull | back to summary |
|---|---|
| public static String trimToNull(final String s) Removes the whitespace at the beginning and end of a String. When the String only contains whitespace, it returns null. | |