Java HashMap Create getHashMap()

Here you can find the source of getHashMap()

Description

get Hash Map

License

Open Source License

Declaration

public static <K, V> Map<K, V> getHashMap() 

Method Source Code

//package com.java2s;

import java.util.HashMap;

import java.util.Map;

public class Main {

    public static <K, V> Map<K, V> getHashMap() {
        return new HashMap<K, V>();
    }//www  .j  av  a2  s . co m

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

    public static <K, V> Map<K, V> getHashMap(Map<? extends K, ? extends V> map) {
        return new HashMap<K, V>(map);
    }

    public static <K, V> Map<K, V> getHashMap(int initialCapacity, float loadFactor) {
        return new HashMap<K, V>(initialCapacity, loadFactor);
    }
}

Related

  1. createHashMap(int initialCapacity)
  2. createHashMap(int size)
  3. createHashMap(Object key, Object value)
  4. createHashMapIfNull(Map map)
  5. createHashMapWithSize(final int size)
  6. getHashMap()
  7. getHashMap()
  8. getHashMap()
  9. getHashMap(Object... args)