| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| public | SoftValueHashMap(int
The initial capacity of the initialCapacity, float WeakHashMapThe load factor of the loadFactor)WeakHashMapConstructs a new, empty |
| public | SoftValueHashMap(int
The initial capacity of the initialCapacity)WeakHashMapConstructs a new, empty |
| public | SoftValueHashMap()
Constructs a new, empty |
| public | SoftValueHashMap(Map<K, V>
the map whose mappings are to be placed in this map. t)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | containsKey(Object
The key whose presence in this map is to be tested. key)Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested arg0)Implements java. Returns |
| public Set | entrySet()
Implements java. Returns a set of the mappings contained in this hash table. |
| public V | get(Object
The key whose associated value, if any, is to be returned. key)Implements java. Returns the value to which this map maps the specified |
| public boolean | |
| public Set | |
| private void | |
| public V | Returns: The previous value to which this key was mapped, ornull if if there was no mapping for the keyThe key that is to be mapped to the given key, V valueThe value to which the given value)key is to be
mappedImplements java. Updates this map so that the given |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map arg0)Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public V | Returns: The value to which this key was mapped, ornull if
there was no mapping for the key.The key whose mapping is to be removed. key)Implements java. Removes the mapping for the given |
| public int | size()
Implements java. Returns the number of key-value mappings in this map Note In contrast with most implementations of the
|
| private V | |
| public Collection | values()
Implements java. Returns a |
| hash | back to summary |
|---|---|
| private Map<K, SoftValueHashMap. | |
| queue | back to summary |
|---|---|
| private ReferenceQueue<V> queue | |
| SoftValueHashMap | back to summary |
|---|---|
| public SoftValueHashMap(int initialCapacity, float loadFactor) Constructs a new, empty
| |
| SoftValueHashMap | back to summary |
|---|---|
| public SoftValueHashMap(int initialCapacity) Constructs a new, empty
| |
| SoftValueHashMap | back to summary |
|---|---|
| public SoftValueHashMap() Constructs a new, empty | |
| SoftValueHashMap | back to summary |
|---|---|
| public SoftValueHashMap(Map<K, V> t) Constructs a new
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Removes all mappings from this map.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements java. Returns
| |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object arg0) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Returns a set of the mappings contained in this hash table.
| |
| get | back to summary |
|---|---|
| public V get(Object key) Implements java. Returns the value to which this map maps the specified
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| processQueue | back to summary |
|---|---|
| private void processQueue() | |
| put | back to summary |
|---|---|
| public V put(K key, V value) Implements java. Updates this map so that the given
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> arg0) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public V remove(Object key) Implements java. Removes the mapping for the given | |
| size | back to summary |
|---|---|
| public int size() Implements java. Returns the number of key-value mappings in this map Note In contrast with most implementations of the
| |
| valueOrNull | back to summary |
|---|---|
| private V valueOrNull(SoftValueHashMap. | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| Modifier and Type | Field and Description |
|---|---|
| public K |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <K, V> SoftValueHashMap. |
| key | back to summary |
|---|---|
| public K key | |
| SoftValueRef | back to summary |
|---|---|
| private SoftValueRef(K key, V val, ReferenceQueue<V> q) | |
| create | back to summary |
|---|---|
| private static <K, V> SoftValueHashMap. | |