Java Map Copy copy(Map dest, Map src)

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

Description

copy

License

Open Source License

Declaration

@SuppressWarnings({ "unchecked", "rawtypes" })
    public static void copy(Map dest, Map src) 

Method Source Code

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

import java.util.Map;

public class Main {
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public static void copy(Map dest, Map src) {
        for (Object k : src.keySet()) {
            Object v = src.get(k);
            dest.put(k, v);/*  w w w .j  av a2  s  .  c om*/
        }
    }
}

Related

  1. copy(final Map source)
  2. copy(Map master, Map slave)
  3. copy(Map to, Map from, Object keys[])
  4. copy(Map src, Map propertyRef)
  5. copy(Map> original)