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 class
private final class
Nested classes/interfaces inherited from class java.util.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 TypeMethodDescriptionvoid
clear()
@Nullable V
@Nullable V
computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) @Nullable V
computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
@Nullable V
boolean
isEmpty()
keySet()
@Nullable V
@Nullable V
@Nullable V
putIfAbsent
(K key, V value) @Nullable V
boolean
@Nullable V
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
@Nullable Collection<V> values -
entries
-
-
Constructor Details
-
AsMapView
AsMapView(LocalCache<K, CompletableFuture<V>> delegate)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
clear
public void clear() -
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
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceConcurrentMap<K,
V> - Specified by:
computeIfAbsent
in interfaceMap<K,
V>
-
computeIfPresent
public @Nullable V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresent
in interfaceConcurrentMap<K,
V> - Specified by:
computeIfPresent
in interfaceMap<K,
V>
-
compute
-
merge
-
keySet
-
values
-
entrySet
-