| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalsMapIgnoreCase(Map<String,String> props,
Map<String,String> otherProps)
Compares two string property maps.
|
static boolean |
isEmpty(String value)
Tests if a
String has content (e.g. |
static String |
notEmpty(String... values)
Returns the first not empty
String from the parameters or
null if not existing. |
static String |
stringifyList(List<String> values)
Converts a list of values to a string 'value1, value2, ...'
|
static String |
stringifyMap(Map<String,Object> keyValueMap)
Converts a map of key value pairs to a string 'key1=value1, key2=value2, ...'
|
static String |
toStringSafely(Object[] args)
Converts an array of objects into a string, while catching and handling all exception types.
|
static String |
trim(String value,
char c)
Trims a string from a certain character
|
public static boolean isEmpty(String value)
String has content (e.g. none space characters) or not.value - The string to be testedtrue in case value is null or has no content.public static String notEmpty(String... values)
String from the parameters or
null if not existing.values - The String values in sorted orderString or nullpublic static String trim(String value, char c)
value - the stringc - the characterpublic static boolean equalsMapIgnoreCase(Map<String,String> props, Map<String,String> otherProps)
props - map to be comparedotherProps - map to be comparedtrue id equals and false otherwisepublic static String stringifyMap(Map<String,Object> keyValueMap)
keyValueMap - map containing key value pairspublic static String stringifyList(List<String> values)
values - list of values to stringifyCopyright © 2021. All rights reserved.