Java Map Copy copyMap(Map sourceMap, Map targetMap)

Here you can find the source of copyMap(Map sourceMap, Map targetMap)

Description

copy Map

License

Apache License

Declaration

public static <T, K extends Object> void copyMap(Map<K, T> sourceMap, Map<K, T> targetMap) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Map;

public class Main {
    public static <T, K extends Object> void copyMap(Map<K, T> sourceMap, Map<K, T> targetMap) {
        targetMap.putAll(sourceMap);/*from   w w w  .  ja v a2 s.  com*/
    }
}

Related

  1. copyEntries(Map aSource, Map aTarget)
  2. copyExcludingKeys(Map map, Set excludedKeys)
  3. copyHashMap(HashMap map1, HashMap map2)
  4. copyLowerCaseMap(Map map)
  5. copyMap(Map from, Map to)
  6. copyMap(Map m)
  7. copyMap(Map m)
  8. copyMap(Map oMap)
  9. copyMap(Map map)