public class CollectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Set<String>> |
cloneMap(Map<String,Set<String>> map)
Returns a cloned Map of String to Set of String.
|
static Map<String,Set<String>> |
getEmptyValuesMap(Set<String> keys)
Returns a Map of String to empty set.
|
static Map<String,Set<String>> |
parseStringToMap(String str)
Returns a map of String to Set of String from a formatted string.
|
static Set<String> |
parseStringToSet(String str)
Returns a Set of String from a formatted string.
|
static Set<String> |
putSetIntoMap(String key,
Map<String,Set<String>> map,
String value)
Returns set of string.
|
public static Set<String> putSetIntoMap(String key, Map<String,Set<String>> map, String value)
Map<String, Set<String>> and many times, we just
want to add a string to the map.key - Key to the entry in the map.map - Map of String to Set of String.value - Value to be added to the map referenced by key.public static Map<String,Set<String>> parseStringToMap(String str)
<key1>=<value11>,<value12>...,<value13>; <key2>=<value21>,<value22>...,<value23>; ... <keyn>=<valuen1>,<valuen2>...,<valuen3>
str - Formatted String.public static Set<String> parseStringToSet(String str)
<value1>,<value2>...,<value3>
str - Formatted String.public static Map<String,Set<String>> cloneMap(Map<String,Set<String>> map)
map - Map to be cloned.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.