public class StringUtil extends Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareStringLists(List<String> list1,
List<String> list2)
Compare two lists of strings.
|
static boolean |
compareStrings(String str1,
String str2) |
static boolean |
compareStringsIgnoreCase(String str1,
String str2) |
static List<String> |
getActionReportMessageParts(ActionReport actionReport)
Return the message parts of an action report as a List
|
static String |
getCommaSeparatedStringList(List<String> strings)
Convert a List
|
static String |
nonEmpty(String string)
Converts a null/empty/non-empty string to null or non-empty
|
static String |
nonNull(String string)
Converts a null/empty/non-empty string to empty or non-empty
|
static boolean |
notEmpty(String string)
Determines if a string is null/empty or not
|
static List<String> |
parseCommaSeparatedStringList(String stringList)
Convert a string containing a comma-separated list of strings into a List
|
public static boolean compareStringLists(List<String> list1, List<String> list2)
list1 - list2 - public static List<String> getActionReportMessageParts(ActionReport actionReport)
actionReport - public static String getCommaSeparatedStringList(List<String> strings)
strings - public static List<String> parseCommaSeparatedStringList(String stringList)
stringList - public static boolean notEmpty(String string)
string - public static String nonEmpty(String string)
string - Copyright © 2019. All rights reserved.