public class MapUtils
extends java.lang.Object
Constructor and Description |
---|
MapUtils() |
Modifier and Type | Method and Description |
---|---|
static <K,V> java.util.Map<K,V> |
copy(java.util.Map<K,V> source)
Clones a map.
|
static <K,V> java.util.Map<K,V> |
merge(java.util.Map<K,V> lhs,
java.util.Map<K,V> rhs)
Clones the lhs map and add all things from the rhs map.
|
static <K,V> java.util.Map<java.lang.String,V> |
prefix(java.util.Map<K,V> source,
java.lang.String prefix)
Clones a map and prefixes the keys in the clone, e.g.
|
public static <K,V> java.util.Map<K,V> copy(java.util.Map<K,V> source)
K
- the map key typeV
- the map value typesource
- the Map to clonepublic static <K,V> java.util.Map<java.lang.String,V> prefix(java.util.Map<K,V> source, java.lang.String prefix)
K
- the map key typeV
- the map value typesource
- the source mapprefix
- the prefix used for all namespublic static <K,V> java.util.Map<K,V> merge(java.util.Map<K,V> lhs, java.util.Map<K,V> rhs)
K
- the map key typeV
- the map value typelhs
- the first maprhs
- the second map"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"