public class VanillaMapView<K,MV,V> extends AbstractMap<K,V> implements MapView<K,MV,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
VanillaMapView(Asset asset,
KeyValueStore<K,MV,V> kvStore,
boolean putReturnsNull,
boolean removeReturnsNull) |
VanillaMapView(FactoryContext<KeyValueStore<K,MV,V>> context) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
asset() |
void |
asset(Asset asset) |
void |
clear() |
Set<Map.Entry<K,V>> |
entrySet() |
View |
forSession(LocalSession session,
Asset asset) |
V |
get(Object key) |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
KeyValueStore<K,MV,V> |
underlying() |
void |
underlying(KeyValueStore<K,MV,V> underlying) |
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllcontainsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, valuesisUnderlyingforSessionpublic VanillaMapView(FactoryContext<KeyValueStore<K,MV,V>> context)
public VanillaMapView(Asset asset, KeyValueStore<K,MV,V> kvStore, boolean putReturnsNull, boolean removeReturnsNull)
public View forSession(LocalSession session, Asset asset)
forSession in interface Viewpublic void asset(Asset asset)
public void underlying(KeyValueStore<K,MV,V> underlying)
underlying in interface Assetted<KeyValueStore<K,MV,V>>public KeyValueStore<K,MV,V> underlying()
underlying in interface Assetted<KeyValueStore<K,MV,V>>public void clear()
public V putIfAbsent(@NotNull K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>Copyright © 2015. All rights reserved.