Strings.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Strings.
Knows how to join |
| public static class | Strings.
Knows how to append a given |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Strings. | |
| public static String | |
| public static String | Returns: the escaped Stringthe String to escape value)Escape any |
| private static String | |
| public static String | Returns: the formatted string if any args were giventhe string to format message, Object... args used to format the message, can be null or empty args)Format with |
| public static boolean | Returns: true if the given String is null or empty, otherwise false.the s)String to check.Indicates whether the given |
| public static Strings. | |
| public static Strings. | |
| public static String | |
| public static Object | |
| private static String |
| Strings | back to summary |
|---|---|
| private Strings() | |
| append | back to summary |
|---|---|
| public static Strings. Appends a given
resulting in the String "abc" for both cases.
| |
| concat | back to summary |
|---|---|
| public static String concat(Object... objects) Concatenates the given objects into a single | |
| escapePercent | back to summary |
|---|---|
| public static String escapePercent(String value) Escape any | |
| escapePercentExceptWhenFollowedBy_n | back to summary |
|---|---|
| private static String escapePercentExceptWhenFollowedBy_n(String message) | |
| formatIfArgs | back to summary |
|---|---|
| public static String formatIfArgs(String message, Object... args) Format with | |
| isNullOrEmpty | back to summary |
|---|---|
| public static boolean isNullOrEmpty(String s) Indicates whether the given
| |
| join | back to summary |
|---|---|
| public static Strings. Joins the given
which will result in the String "a|b|c".
| |
| join | back to summary |
|---|---|
| public static Strings. Joins the given
which will result in the String "a|b|c".
| |
| quote | back to summary |
|---|---|
| public static String quote(String s) Returns the given | |
| quote | back to summary |
|---|---|
| public static Object quote(Object o) Returns the given object surrounded by single quotes, only if the object is a
| |
| revertEscapingPercent_n | back to summary |
|---|---|
| private static String revertEscapingPercent_n(String value) | |
Strings using a given delimiter.
Strings#join(String[])
| Modifier and Type | Field and Description |
|---|---|
| private final String[] | strings
The |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| strings | back to summary |
|---|---|
| private final String[] strings The | |
| StringsToJoin | back to summary |
|---|---|
| pack-priv StringsToJoin(String... strings) Creates a new
| |
| with | back to summary |
|---|---|
| public String with(String delimiter) Specifies the delimiter to use to join | |
| with | back to summary |
|---|---|
| public String with(String delimiter, String escapeString) Specifies the delimiter to use to join | |
String to the given target, only if the target does not end with the given
String to append.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| toAppend | back to summary |
|---|---|
| private final String toAppend | |
| StringToAppend | back to summary |
|---|---|
| pack-priv StringToAppend(String toAppend) | |
| to | back to summary |
|---|---|
| public String to(String s) Appends the | |