public interface MapView<K,MV,V> extends ConcurrentMap<K,V>, Assetted<KeyValueStore<K,MV,V>>, Updatable<MapView<K,MV,V>>, KeyedVisitable<K,V>, java.util.function.Function<K,V>, View
| Modifier and Type | Method and Description |
|---|---|
default V |
apply(K k) |
V |
getAndPut(K key,
V value)
Explicitly get the old value before putting a new one.
|
V |
getAndRemove(K key)
Explicitly get the old value before removing.
|
V |
getUsing(K key,
MV using)
Obtain a value using a mutable buffer privided.
|
default boolean |
keyedView()
If you attach a keyed view to an Asset, it is assumed that any child asset with be a SubAsset.
|
Class<K> |
keyType() |
long |
longSize() |
Reference<V> |
referenceFor(K key)
Obtain a reference the value for a key
|
void |
registerKeySubscriber(Subscriber<K> subscriber)
Add a Subscription for the keys changed on this Map
|
void |
registerSubscriber(Subscriber<MapEvent<K,V>> subscriber)
Add a Subscription for the MapEvents triggered by changes on this Map.
|
void |
registerTopicSubscriber(TopicSubscriber<K,V> topicSubscriber)
Add a TopicSubscriber to this Map.
|
default int |
size() |
Class<V> |
valueType() |
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllclear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, valuesasset, underlyingapplyTo, applyTo, asyncUpdate, asyncUpdate, syncUpdate, syncUpdateapplyToKey, applyToKey, asyncUpdateKey, asyncUpdateKey, get, set, syncUpdateKey, syncUpdateKeyandThen, compose, identitydefault boolean keyedView()
ViewV getUsing(K key, MV using)
key - to lookup.using - a mutable buffervoid registerTopicSubscriber(TopicSubscriber<K,V> topicSubscriber)
topicSubscriber - to addvoid registerKeySubscriber(Subscriber<K> subscriber)
subscriber - to addvoid registerSubscriber(Subscriber<MapEvent<K,V>> subscriber)
subscriber - Reference<V> referenceFor(K key)
key - to bind the reference todefault V apply(K k)
apply in interface java.util.function.Function<K,V>long longSize()
V getAndPut(K key, V value)
key - to lookupvalue - to setCopyright © 2015. All rights reserved.