Java Map Copy copyStringMap(Map initParams)

Here you can find the source of copyStringMap(Map initParams)

Description

copy String Map

License

Open Source License

Declaration

private static Map<String, String> copyStringMap(Map<String, String> initParams) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2015, 2016 Raymond Aug? and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:/*from w  w w. ja va 2 s.co  m*/
 *     Raymond Aug? - bug fixes and enhancements
 ******************************************************************************/

import java.util.*;

public class Main {
    private static Map<String, String> copyStringMap(Map<String, String> initParams) {
        return new HashMap<String, String>(initParams);
    }
}

Related

  1. copyOnWritePut(K k, V v, Map source)
  2. copyOptions(Map options)
  3. copyParameters(Map parameters)
  4. copyPropertiesToMap(Properties source, Map target)
  5. copySafelyToObjectToObjectMap(java.util.Map map)
  6. copyUntilFull(final Map source, final Map dest1, Map overflow, final int dest1Capacity)
  7. copyValue(Map source, Map target, K key)
  8. copyValueIfExist(Map source, K sourceKey, Map target, K targetKey)
  9. copyValueIfExist(Map source, Map target, K key)