String.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the String has any non-whitespace characterString to check string)Check if the String has any non-whitespace character. |
| public static boolean | Returns: true if the String has any characterString to check string)Check if the String has any character. |
| public static String | |
| public static String | Returns: truncated StringString to truncate string, int max length, which includes the length required for
maxLength, String truncationIndicatorA string that is appended if truncationIndicator)string is truncatedTruncate the String to the max length and append string to indicate if truncation was applied |
| StringUtils | back to summary |
|---|---|
| private StringUtils() | |
| isBlank | back to summary |
|---|---|
| public static boolean isBlank(String string) Check if the String is null or has only whitespaces.
Modified from
| |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(String string) Check if the String is null or empty.
| |
| isNotBlank | back to summary |
|---|---|
| public static boolean isNotBlank(String string) Check if the String has any non-whitespace character.
| |
| isNotEmpty | back to summary |
|---|---|
| public static boolean isNotEmpty(String string) Check if the String has any character.
| |
| truncate | back to summary |
|---|---|
| public static String truncate(String string, int maxLength) Truncate the String to the max length. | |
| truncate | back to summary |
|---|---|
| public static String truncate(String string, int maxLength, String truncationIndicator) Truncate the String to the max length and append string to indicate if truncation was applied | |