public final class MapUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
get(Map<String,? extends Object> map,
String path)
Try to get a value following a path in the map.
|
static <K,V> Map<K,V> |
newHashMap(K[] keys,
V[] values)
Create a new hash map and fills it from the given keys and values
(keys[index] -> values[index].
|
public static Object get(Map<String,? extends Object> map, String path)
map
- the map to search for pathpath
- keys in the map separated by '.'public static <K,V> Map<K,V> newHashMap(K[] keys, V[] values)
keys
- The array of keys.values
- The array of values.Copyright © 2017. All rights reserved.