Class LocalAsyncCache.AsMapView<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.github.benmanes.caffeine.cache.LocalAsyncCache.AsMapView<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K, V>
- Enclosing interface:
LocalAsyncCache<K,V>
public static final class LocalAsyncCache.AsMapView<K,V>
extends AbstractMap<K,V>
implements ConcurrentMap<K,V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate final classNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LocalCache<K, CompletableFuture<V>> (package private) @Nullable Collection<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()@Nullable V@Nullable VcomputeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) @Nullable VcomputeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()@Nullable VbooleanisEmpty()keySet()@Nullable V@Nullable V@Nullable VputIfAbsent(K key, V value) @Nullable Vboolean@Nullable Vbooleanintsize()values()Methods inherited from interface ConcurrentMap
forEach, getOrDefault, replaceAll
-
Field Details
-
delegate
-
values
@Nullable Collection<V> values -
entries
-
-
Constructor Details
-
AsMapView
AsMapView(LocalCache<K, CompletableFuture<V>> delegate)
-
-
Method Details
-
isEmpty
-
size
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
get
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V>
-
put
-
remove
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
public @Nullable V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresentin interfaceConcurrentMap<K,V> - Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-
keySet
-
values
-
entrySet
-