Java WeakHashMap Create getWeakHashMap()

Here you can find the source of getWeakHashMap()

Description

get Weak Hash Map

License

Open Source License

Declaration

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

Method Source Code

//package com.java2s;

import java.util.Map;

import java.util.WeakHashMap;

public class Main {

    public static <K, V> Map<K, V> getWeakHashMap() {
        return new WeakHashMap<K, V>();
    }//w  ww.j a  va  2  s  .  co  m

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

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

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

Related

  1. getWeakHashMap()
  2. newWeakHashMap()
  3. newWeakHashMap(final int initialCapacity, final float loadFactor)
  4. weakHashMap()