Utility method to retrieve a multi-valued string option from a map and provide a default value if the key was not found set.
Syntax
String[]
getMultiValuedStringOption
(
Map< String,?>
options
,
String
key
,
String[]
defaultOption
,
char
delimiter
)
Parameters
-
options –
the Map in which the property values reside
-
key –
property name
-
defaultOption –
default value if the property is not found.
-
delimiter –
the character to use as the delimiter of the string values
Returns
the value from the Map or the default.
Usage
Zero-length values are discarded and whitespace is trimmed.
the value from the Map or the default.