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(Class keyClass,
Class valueType,
Asset asset,
KeyValueStore<K,MV,V> kvStore,
boolean putReturnsNull,
boolean removeReturnsNull) |
VanillaMapView(RequestContext context,
Asset asset,
KeyValueStore<K,MV,V> kvStore) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
asset() |
void |
clear() |
boolean |
containsKey(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Set<K> |
keySet() |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
void |
registerKeySubscriber(Subscriber<K> subscriber) |
void |
registerSubscriber(Subscriber<MapEvent<K,V>> subscriber) |
void |
registerTopicSubscriber(TopicSubscriber<K,V> topicSubscriber) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
set(K key,
V value) |
int |
size() |
KeyValueStore<K,MV,V> |
underlying() |
clone, containsValue, equals, hashCode, isEmpty, putAll, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllcontainsValue, equals, hashCode, isEmpty, putAll, valuesapply, apply, asyncUpdate, asyncUpdate, syncUpdate, syncUpdateapply, apply, asyncUpdate, asyncUpdate, syncUpdate, syncUpdatepublic VanillaMapView(RequestContext context, Asset asset, KeyValueStore<K,MV,V> kvStore)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public KeyValueStore<K,MV,V> underlying()
underlying in interface Assetted<KeyValueStore<K,MV,V>>public int size()
public void clear()
public V putIfAbsent(@NotNull K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>public void registerTopicSubscriber(TopicSubscriber<K,V> topicSubscriber)
registerTopicSubscriber in interface MapView<K,MV,V>public void registerKeySubscriber(Subscriber<K> subscriber)
registerKeySubscriber in interface MapView<K,MV,V>public void registerSubscriber(Subscriber<MapEvent<K,V>> subscriber)
registerSubscriber in interface MapView<K,MV,V>Copyright © 2015. All rights reserved.