| Modifier and Type | Class and Description |
|---|---|
| private class | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ReferenceQueue | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public boolean | containsKey(final Object
key whose presence in this map is to be tested key)Implements java. Returns |
| public boolean | containsValue(final Object
value whose presence in this map is to be tested value)Implements java. Returns |
| public Set | entrySet()
Implements java. Returns a |
| public Value | get(Object
the key whose associated value is to be returned key)Implements java. Returns the value to which the specified key is mapped,
or |
| public boolean | |
| public Set | |
| protected Map | |
| public Value | put(Key
key with which the specified value is to be associated key, Value value to be associated with the specified key value)Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(final Map<? extends Key, ? extends Value>
mappings to be stored in this map m)Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public Value | remove(final Object
key whose mapping is to be removed from the map key)Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public int | |
| public String | |
| public Collection | values()
Implements java. Returns a |
| deadRefs | back to summary |
|---|---|
| private final ReferenceQueue<Value> deadRefs | |
| map | back to summary |
|---|---|
| private final Map<Key, WeakValuedMap. | |
| WeakValuedMap | back to summary |
|---|---|
| public WeakValuedMap() | |
| cleanReferences | back to summary |
|---|---|
private void cleanReferences()
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns. | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(final Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public Value get(Object key) 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
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| newMap | back to summary |
|---|---|
| protected Map Construct the backing store map for this WeakValuedMap. It should be capable of safe concurrent read and write.
| |
| put | back to summary |
|---|---|
| public Value put(Key key, Value value) 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
| |
| putAll | back to summary |
|---|---|
| public void putAll(final Map<? extends Key, ? extends Value> m) 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 Value remove(final Object key) 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() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv transient Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Map.
element to be added to this set eOverrides java. Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public void | clear()
Overrides java. Implements java. Removes all of the elements from this set (optional operation). |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. Returns |
| private Set | |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this set. |
| public boolean | remove(Object
object to be removed from this set, if present o)Overrides java. Implements java. Removes the specified element from this set if it is present (optional operation). |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this set (its cardinality). |
| entries | back to summary |
|---|---|
| pack-priv transient Set<Map. | |
| EntrySet | back to summary |
|---|---|
| private EntrySet() | |
| add | back to summary |
|---|---|
| public boolean add(Map. Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns. | |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns
| |
| getEntries | back to summary |
|---|---|
| private Set | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final Key |
| Access | Constructor and Description |
|---|---|
| public |
| key | back to summary |
|---|---|
| protected final Key key | |
| KeyedReference | back to summary |
|---|---|
| public KeyedReference(Value object, Key key, ReferenceQueue<? super Value> queue) | |