public class WeakValueHashMap<K,V>
extends java.util.AbstractMap<K,V>
implements java.io.Serializable
Map implementation that maps keys to weakly referenced values. Keys in this map must be non-null Object objects.
Values must be non-null. See java.util.WeakHashMap in the Java API, which has weak keys instead of weak values.WeakHashMap,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected class |
WeakValueHashMap.EntrySet<K1,V1> |
protected static class |
WeakValueHashMap.MyWeakReference<T> |
| Constructor and Description |
|---|
WeakValueHashMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object p_key) |
boolean |
containsValue(java.lang.Object o) |
protected WeakValueHashMap.MyWeakReference<V> |
createReference(K key,
V value,
java.lang.ref.ReferenceQueue<WeakValueHashMap.MyWeakReference<V>> refQueue) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object p_key) |
boolean |
isEmpty() |
java.util.Set |
keySet() |
V |
put(K key,
V p_value) |
V |
remove(java.lang.Object p_key) |
protected void |
removeReference(WeakValueHashMap.MyWeakReference<V> discarded) |
int |
size() |
java.util.Collection<V> |
values() |
public int size()
public boolean containsValue(java.lang.Object o)
public boolean containsKey(java.lang.Object p_key)
public V get(java.lang.Object p_key)
protected WeakValueHashMap.MyWeakReference<V> createReference(K key, V value, java.lang.ref.ReferenceQueue<WeakValueHashMap.MyWeakReference<V>> refQueue)
public V remove(java.lang.Object p_key)
public void clear()
public java.util.Set keySet()
public java.util.Collection<V> values()
public boolean isEmpty()
protected void removeReference(WeakValueHashMap.MyWeakReference<V> discarded)
Copyright © 2018 SAP SE. All Rights Reserved.