public class MapUtils
extends java.lang.Object
构造器和说明 |
---|
MapUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.Map |
copy(java.util.Map source)
Clones a map.
|
static java.util.Map |
merge(java.util.Map lhs,
java.util.Map rhs)
Clones the lhs map and add all things from the
rhs map.
|
static java.util.Map |
prefix(java.util.Map source,
java.lang.String prefix)
Clones a map and prefixes the keys in the clone, e.g.
|
public static java.util.Map copy(java.util.Map source)
source
- the source mappublic static java.util.Map prefix(java.util.Map source, java.lang.String prefix)
source
- the source mapprefix
- the prefix used for all namespublic static java.util.Map merge(java.util.Map lhs, java.util.Map rhs)
lhs
- the first maprhs
- the second map