Java HashMap Create createHashMap(int initialCapacity)

Here you can find the source of createHashMap(int initialCapacity)

Description

create Hash Map

License

Apache License

Declaration

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

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(int initialCapacity) {
        return new HashMap<K, V>(initialCapacity);
    }//from   w ww . jav  a 2  s .co m
}

Related

  1. createHashMap()
  2. createHashMap()
  3. createHashMap(int expectedMapSize)
  4. createHashMap(int initialCapacity)
  5. createHashMap(int size)
  6. createHashMap(Object key, Object value)
  7. createHashMapIfNull(Map map)