| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public V | Returns: a value to which the specifiedkey is mappedthe key whose associated value is returned key)Returns a value to which the specified |
| public void | put(K
the key with which the specified value is associated key, V the value to be associated with the specified key value)Associates the specified |
| map | back to summary |
|---|---|
| private final Map<K, Reference<V>> map | |
| WeakCache | back to summary |
|---|---|
| public WeakCache() | |
| clear | back to summary |
|---|---|
| public void clear() Removes all of the mappings from this cache. | |
| get | back to summary |
|---|---|
| public V get(K key) Returns a value to which the specified
| |
| put | back to summary |
|---|---|
| public void put(K key, V value) Associates the specified
| |