Class WeakValueMap<K,V>

java.lang.Object
com.pnfsoftware.jeb.util.collect.WeakValueMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Map<K,V>

@Ser public class WeakValueMap<K,V> extends Object implements Map<K,V>
A map whose values (and only the values, not the keys) do not prevent garbage collection of entries. The "opposite" of WeakHashMap. Key-value pairs with a null value should not be inserted to this map; no guarantee on retrieval and persistence is provided for null values.

This map object supports serializability. It is serializable if its key and value types are also serializable.

See Also:
  • Constructor Details

    • WeakValueMap

      public WeakValueMap(int initialCapacity, float loadFactor)
    • WeakValueMap

      public WeakValueMap(int initialCapacity)
    • WeakValueMap

      public WeakValueMap()
    • WeakValueMap

      public WeakValueMap(Map<K,V> t)
  • Method Details