public class


extends Object
implements Map<K, V>
   ↳ com.pnfsoftware.jeb.util.collect.WeakValueMap<K, V>

Class Overview

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
  • WeakHashMap
  • WeakKeyValueMap


Public Constructors
WeakValueMap(int initialCapacity, float loadFactor)
WeakValueMap(int initialCapacity)
WeakValueMap(Map<K, V> t)
Public Methods
void clear()
boolean containsKey(Object key)
boolean containsValue(Object value)
Set<Entry<K, V>> entrySet()
boolean equals(Object obj)
V get(Object key)
int hashCode()
boolean isEmpty()
Set<K> keySet()
V put(K key, V value)
void putAll(Map<? extends K, ? extends V> m)
V remove(Object key)
int size()
String toString()
Collection<V> values()
Inherited Methods
From class java.lang.Object
From interface java.util.Map

Public Constructors

public WeakValueMap (int initialCapacity, float loadFactor)

public WeakValueMap (int initialCapacity)

public WeakValueMap ()

public WeakValueMap (Map<K, V> t)

Public Methods

public void clear ()

public boolean containsKey (Object key)

public boolean containsValue (Object value)

public Set<Entry<K, V>> entrySet ()

public boolean equals (Object obj)

public V get (Object key)

public int hashCode ()

public boolean isEmpty ()

public Set<K> keySet ()

public V put (K key, V value)

public void putAll (Map<? extends K, ? extends V> m)

public V remove (Object key)

public int size ()

public String toString ()

public Collection<V> values ()