Java WeakHashMap Create newWeakHashMap()

Here you can find the source of newWeakHashMap()

Description

Constructs an empty WeakHashMap.

License

Apache License

Declaration

public static final <k, v> WeakHashMap<k, v> newWeakHashMap() 

Method Source Code

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

import java.util.WeakHashMap;

public class Main {
    /**//w  w  w.  ja v a 2s  .co  m
     * Constructs an empty WeakHashMap.
     */
    public static final <k, v> WeakHashMap<k, v> newWeakHashMap() {
        return new WeakHashMap<k, v>();
    }
}

Related

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