| Modifier and Type | Method and Description |
|---|---|
static <K,V> HashMap<K,V> |
asHashMap(Map<K,V> map) |
static <K> Integer |
increment(Map<K,Integer> map,
K key) |
static <K> Integer |
increment(Map<K,Integer> map,
K key,
int value) |
static Map<String,Object> |
unpack(Map map)
Iterates through entries of the input
map and for values being String
arrays puts the first element of the map in the result map. |
public static Map<String,Object> unpack(Map map)
map and for values being String
arrays puts the first element of the map in the result map. Scalar values get
copied to the output map unchanged.
This method might be useful for "unpacking" values from servlet HTTP requests.