public final class StringUtil extends Object
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
joinCommaSeparatedList(List<String> list)
Joins a list of Strings to a comma separated single String.
|
static String |
joinList(List<String> list,
String separator) |
static List<String> |
splitCommaSeparatedList(String text)
Splits a comma separated list in to single Strings.
|
static List<String> |
splitListBySeparator(String text,
String separator) |
public static List<String> splitCommaSeparatedList(String text)
text
- the comma separated listpublic static String joinCommaSeparatedList(List<String> list)
list
- the list to joinCopyright © 2020. All rights reserved.