Class StringUtil
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.util.StringUtil
-
public final class StringUtil extends Object
- Author:
- Sebastian Menski
-
-
Constructor Summary
Constructors Constructor Description StringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
splitCommaSeparatedList
public static List<String> splitCommaSeparatedList(String text)
Splits a comma separated list in to single Strings. The list can contain expressions with commas in it.- Parameters:
text
- the comma separated list- Returns:
- the Strings of the list or an empty List if text is empty or null
-
joinCommaSeparatedList
public static String joinCommaSeparatedList(List<String> list)
Joins a list of Strings to a comma separated single String.- Parameters:
list
- the list to join- Returns:
- the resulting comma separated string or null if the list is null
-
splitListBySeparator
public static List<String> splitListBySeparator(String text, String separator)
-
-