Java Map Copy copyOf(final Map map)

Here you can find the source of copyOf(final Map map)

Description

copy Of

License

Apache License

Declaration

public static <K, V> Map<K, V> copyOf(final Map<K, V> map) 

Method Source Code

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

import java.util.*;

public class Main {
    public static <K, V> Map<K, V> copyOf(final Map<K, V> map) {
        final Map<K, V> copy = new LinkedHashMap<>();
        copy.putAll(map);/*  w  ww . ja  v a  2 s .  c o m*/
        return copy;
    }
}

Related

  1. copyMap(Map m)
  2. copyMap(Object object)
  3. copyMapButFailOnNull(Map entries)
  4. copyMapWithoutEmpties(Map original)
  5. copyOf( Map> map)
  6. copyOf(Map src)
  7. copyOnWritePut(K k, V v, Map source)
  8. copyOptions(Map options)
  9. copyParameters(Map parameters)