| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanUpNullReferences()
Implements org. |
| public V | get(final K
the key whose associated value is to be returned key)Implements org. |
| public V | getAndPut(K key, MemoizeCache.
provide the value if the associated value not found valueProviderOverrides default org. |
| public V | put(final K
key with which the specified value is to be associated key, final V value to be associated with the specified key value)Implements org. |
| map | back to summary |
|---|---|
| private final ConcurrentMap<K, V> map | |
| LRUCache | back to summary |
|---|---|
| public LRUCache(final int maxCacheSize) | |
| cleanUpNullReferences | back to summary |
|---|---|
| public void cleanUpNullReferences() Implements org. Remove all entries holding SoftReferences to gc-evicted objects. | |
| get | back to summary |
|---|---|
| public V get(final K key) Implements org. Doc from org. Gets a value from the cache
| |
| getAndPut | back to summary |
|---|---|
| public V getAndPut(K key, MemoizeCache. Overrides default org. Try to get the value from cache.
If not found, create the value by
| |
| put | back to summary |
|---|---|
| public V put(final K key, final V value) Implements org. Doc from org. Associates the specified value with the specified key in the cache.
| |