Class LocalAsyncLoadingCache.AsMapView<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.github.benmanes.caffeine.cache.LocalAsyncLoadingCache.AsMapView<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,
,V> Map<K,
V>
- Enclosing class:
- LocalAsyncLoadingCache<C extends LocalCache<K,
CompletableFuture<V>>, K, V>
static final class LocalAsyncLoadingCache.AsMapView<K,V>
extends AbstractMap<K,V>
implements ConcurrentMap<K,V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
private final class
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LocalCache<K,
CompletableFuture<V>> (package private) Collection<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
isEmpty()
keySet()
putIfAbsent
(K key, V value) boolean
boolean
int
size()
values()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, replaceAll
-
Field Details
-
delegate
-
values
Collection<V> values -
entries
-
-
Constructor Details
-
AsMapView
AsMapView(LocalCache<K, CompletableFuture<V>> delegate)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classAbstractMap<K,
V>
-
get
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap<K,
V> - Specified by:
putIfAbsent
in interfaceMap<K,
V>
-
put
-
remove
-
replace
-
replace
-
remove
-
clear
public void clear() -
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceConcurrentMap<K,
V> - Specified by:
computeIfAbsent
in interfaceMap<K,
V>
-
computeIfPresent
- Specified by:
computeIfPresent
in interfaceConcurrentMap<K,
V> - Specified by:
computeIfPresent
in interfaceMap<K,
V>
-
compute
-
merge
-
keySet
-
values
-
entrySet
-