K
- the key typeV
- the value typepublic abstract class SelfPopulatingMap<K,V> extends Object
create(Object)
.Constructor | Description |
---|---|
SelfPopulatingMap() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract V |
create(K key) |
Create a value for a key.
|
V |
get(K key) |
protected abstract V create(K key)
get(Object)
when there is not
already an existing value, and no other thread is already creating a value for that key.
The value returned must not be null.key
- the key to create the value forCopyright © 2008–2018. All rights reserved.