Java Map Copy copy(Map src, Map dst)

Here you can find the source of copy(Map src, Map dst)

Description

copy

License

Open Source License

Declaration

public static <T, K> void copy(Map<T, K> src, Map<T, K> dst) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Map;
import java.util.Map.Entry;

public class Main {
    public static <T, K> void copy(Map<T, K> src, Map<T, K> dst) {
        for (Entry<T, K> e : src.entrySet()) {
            dst.put(e.getKey(), e.getValue());
        }//from   w  w w .  j  a v a  2  s  . c o  m
    }
}

Related

  1. copy(Map src, Map propertyRef)
  2. copy(Map> original)
  3. copy(Map map)
  4. copy(Map master, Map copy)
  5. copy(Map> original)
  6. copyAndRemove(Map map, K key)
  7. copyDeep(Map> data)
  8. copyEntries(Map aSource, Map aTarget)
  9. copyExcludingKeys(Map map, Set excludedKeys)