Represents a memoize cache with its essential methods
- type of the keys
- type of the valuesType Params | Return Type | Name and description |
---|---|---|
|
void |
cleanUpNullReferences() Invoked when some of the held SoftReferences have been evicted by the garbage collector and so should be removed from the cache. |
|
V |
get(K key) |
|
V |
put(K key, V value) |
Invoked when some of the held SoftReferences have been evicted by the garbage collector and so should be removed from the cache. The implementation must ensure that concurrent invocations of all methods on the cache may occur from other threads and thus should protect any shared resources.