Modifier and Type | Class and Description |
---|---|
private static class |
WeakIdentityHashMap.IdentityWeakReference<T> |
Modifier and Type | Field and Description |
---|---|
private Map<WeakIdentityHashMap.IdentityWeakReference<K>,V> |
_innerMap |
private ReferenceQueue<K> |
_refQueue |
Constructor and Description |
---|
WeakIdentityHashMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
private void |
removeQueuedReferences() |
int |
size() |
Collection<V> |
values() |
private WeakIdentityHashMap.IdentityWeakReference<K> |
wrap(Object key) |
private final ReferenceQueue<K> _refQueue
private Map<WeakIdentityHashMap.IdentityWeakReference<K>,V> _innerMap
private void removeQueuedReferences()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
private WeakIdentityHashMap.IdentityWeakReference<K> wrap(Object key)
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>