public class MapUtils extends Object
| Constructor and Description |
|---|
MapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
copy(Map<K,V> source)
Clones a map.
|
static <K,V> Map<K,V> |
merge(Map<K,V> lhs,
Map<K,V> rhs)
Clones the lhs map and add all things from the rhs map.
|
static <K,V> Map<String,V> |
prefix(Map<K,V> source,
String prefix)
Clones a map and prefixes the keys in the clone, e.g.
|
public static <K,V> Map<K,V> copy(Map<K,V> source)
K - the map key typeV - the map value typesource - the Map to clonepublic static <K,V> Map<String,V> prefix(Map<K,V> source, String prefix)
K - the map key typeV - the map value typesource - the source mapprefix - the prefix used for all namesCopyright © 2014 The Apache Software Foundation. All rights reserved.