Java WeakHashMap Create weakHashMap()

Here you can find the source of weakHashMap()

Description

weak Hash Map

License

Open Source License

Parameter

Parameter Description
K Key type
V Value type

Return

WeakHashMap

Declaration

public static <K, V> WeakHashMap<K, V> weakHashMap() 

Method Source Code

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

import java.util.WeakHashMap;

public class Main {
    /**//from www. j a va  2 s .  c o m
     *
     * @param <K> Key type
     * @param <V> Value type
     * @return WeakHashMap
     */
    public static <K, V> WeakHashMap<K, V> weakHashMap() {
        return new WeakHashMap<>();
    }
}

Related

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