Java Map Copy copyParameters(Map parameters)

Here you can find the source of copyParameters(Map parameters)

Description

copy Parameters

License

Apache License

Declaration

static Map<String, Object> copyParameters(Map<String, Object> parameters) 

Method Source Code


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

import java.util.HashMap;
import java.util.Map;

public class Main {
    static Map<String, Object> copyParameters(Map<String, Object> parameters) {
        Map<String, Object> ps = new HashMap<>();
        if (parameters != null)
            ps.putAll(parameters);//w  w  w .ja  v  a2 s  . com

        return ps;
    }
}

Related

  1. copyOf( Map> map)
  2. copyOf(final Map map)
  3. copyOf(Map src)
  4. copyOnWritePut(K k, V v, Map source)
  5. copyOptions(Map options)
  6. copyPropertiesToMap(Properties source, Map target)
  7. copySafelyToObjectToObjectMap(java.util.Map map)
  8. copyStringMap(Map initParams)
  9. copyUntilFull(final Map source, final Map dest1, Map overflow, final int dest1Capacity)