| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| public V | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| private void | |
| public V | put(K
key with which the specified value is to be associated k, V value to be associated with the specified key v)Overrides java. Implements java. |
| public V | remove(Object
key whose mapping is to be removed from the map k)Overrides java. Implements java. |
| public int | size()
Overrides java. Implements java. |
| map | back to summary |
|---|---|
| private Map<K, SoftHashMap<K, V>. | |
| rq | back to summary |
|---|---|
| private ReferenceQueue<? super V> rq | |
| SoftHashMap | back to summary |
|---|---|
| public SoftHashMap() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public V get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| processQueue | back to summary |
|---|---|
private void processQueue()
| |
| put | back to summary |
|---|---|
| public V put(K k, V v) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| remove | back to summary |
|---|---|
| public V remove(Object k) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private final K |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| key | back to summary |
|---|---|
| private final K key | |
| SpecialValue | back to summary |
|---|---|
| pack-priv SpecialValue(K k, V v) | |