| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. Removes all of the mappings from this map (optional operation). |
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public V | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| private void | |
| public V | Returns: null or the old object.the key key, V the value value)Overrides java. Implements java. Store the object. |
| public V | Returns: null or the old objectthe key key)Overrides java. Implements java. Remove an object. |
| map | back to summary |
|---|---|
| private final Map<K, SoftValuesHashMap. | |
| queue | back to summary |
|---|---|
| private final ReferenceQueue<V> queue | |
| SoftValuesHashMap | back to summary |
|---|---|
| public SoftValuesHashMap() | |
| 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 key, V value) Overrides java. Implements java. Store the object. The return value of this method is null or a SoftReference.
| |
| remove | back to summary |
|---|---|
| public V remove(Object key) Overrides java. Implements java. Remove an object. | |
| Access | Constructor and Description |
|---|---|
| public |
| key | back to summary |
|---|---|
| pack-priv final Object key | |
| SoftValue | back to summary |
|---|---|
| public SoftValue(T ref, ReferenceQueue<T> q, Object key) | |