Java Map Create createMap()

Here you can find the source of createMap()

Description

create Map

License

Open Source License

Declaration

public static Map createMap() 

Method Source Code

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

import java.util.Collections;

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

public class Main {
    public static Map createMap() {
        return createMap(Collections.EMPTY_MAP);
    }/* ww w  .  j a  v  a 2  s .c  om*/

    @SuppressWarnings("unchecked")
    public static Map createMap(Map m) {
        return new HashMap(m);
    }
}

Related

  1. buildMap(Object key, Object value)
  2. buildMap(Object... data)
  3. buildMap(String... keysAndValues)
  4. buildMap(String... keyValuePairs)
  5. createMap()
  6. createMap()
  7. createMap()
  8. createMap(boolean full)
  9. createMap(int len)