Java Utililty Methods Map Copy

List of utility methods to do Map Copy

Description

The list of methods to do Map Copy are organized into topic(s).

Method

HashMap>deepCopy(Map> context)
deep Copy
HashMap<String, Map<String, String>> map = new HashMap<String, Map<String, String>>();
for (final Map.Entry<String, Map<String, String>> entry : context.entrySet()) {
    map.put(entry.getKey(), new HashMap<String, String>(entry.getValue()));
return map;
MapdeepCopyMap(Map map)
deep Copy Map
return new HashMap(map);