| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the target string is null or emptystring to check target)Tells whether the given string is either |
| public static String | |
| public static String | |
| public static String | Returns: the resultant stringthe character to repeat ch, int how many times to repeat the character count)Gives a string consisting of the given character repeated the given number of times. |
| public static String |
| EMPTY | back to summary |
|---|---|
| public static final String EMPTY | |
| LINE_SEPARATOR | back to summary |
|---|---|
| public static final String LINE_SEPARATOR | |
| Strings | back to summary |
|---|---|
| private Strings() | |
| isNullOrEmpty | back to summary |
|---|---|
| public static boolean isNullOrEmpty(String target) Tells whether the given string is either
| |
| join | back to summary |
|---|---|
| public static String join(String[] pieces, String separator) Gives a string consisting of the elements of a given array of strings, each separated by a given separator string. | |
| join | back to summary |
|---|---|
| public static String join(Iterable<String> pieces, String separator) Gives a string consisting of the string representations of the elements of a given array of objects, each separated by a given separator string. | |
| repeat | back to summary |
|---|---|
| public static String repeat(char ch, int count) Gives a string consisting of the given character repeated the given number of times.
| |
| surround | back to summary |
|---|---|
| public static String surround(String target, char begin, char end) Gives a string consisting of a given string prepended and appended with surrounding characters. | |