public class WeakIdentityMap<K,V> extends Object
Constructor and Description |
---|
WeakIdentityMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all associations from this map.
|
V |
get(Object key)
Returns value associated with given key, or null if none.
|
V |
put(K key,
V value)
Associates value with given key, returning value previously associated
with key, or null if none.
|
V |
remove(Object key)
Removes association for given key, returning value previously associated
with key, or null if none.
|
Collection<V> |
values()
Returns collection containing all values currently held in this map.
|
public V put(K key, V value)
key
- value
- public V get(Object key)
key
- public V remove(Object key)
key
- public Collection<V> values()
public void clear()
Copyright © 2016–2018. All rights reserved.