Java HashMap Create createHashMap()

Here you can find the source of createHashMap()

Description

create Hash Map

License

Apache License

Declaration

public static <K, V> HashMap<K, V> createHashMap() 

Method Source Code

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

import java.util.HashMap;

public class Main {

    public static <K, V> HashMap<K, V> createHashMap() {
        return new HashMap<K, V>();
    }//w  ww. j a  v  a  2  s  . com

    public static <K, V> HashMap<K, V> createHashMap(int initialCapacity) {
        return new HashMap<K, V>(initialCapacity);
    }
}

Related

  1. createHashMap()
  2. createHashMap(int expectedMapSize)
  3. createHashMap(int initialCapacity)
  4. createHashMap(int initialCapacity)