| com.google.inject.util.AbstractReferenceCache
AbstractReferenceCache | abstract class AbstractReferenceCache extends ReferenceMap (Code) | | Supports cache implementations.
author: crazybob@google.com (Bob Lee) |
Inner Class :static class FutureValue | |
Method Summary | |
abstract V | create(FutureValue<V> futureValue, K key) Creates a value for the given key. | public V | get(Object key) If this map does not contain an entry for the given key, this method will
create a new value, put it in the map, and return it. | V | internalCreate(K key) |
create | abstract V create(FutureValue<V> futureValue, K key)(Code) | | Creates a value for the given key.
|
get | public V get(Object key)(Code) | | If this map does not contain an entry for the given key, this method will
create a new value, put it in the map, and return it. The value
is canonical (i.e. only one value will be created for each key).
throws: NullPointerException - if the value is null throws: java.util.concurrent.CancellationException - if the value creationis cancelled. |
internalCreate | V internalCreate(K key)(Code) | | |
|
|