java.lang.Object
swim.structure.collections.ValueMap<K,V>
swim.structure.collections.ValueIterableMap<K,V>
swim.structure.collections.ValueOrderedMap<K,V>
swim.store.MapDataView<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> Map<K,,V> SortedMap<K,,V> swim.api.data.MapData<K,,V> DataContext,MapDataContext,swim.util.IterableMap<K,,V> swim.util.OrderedMap<K,V>
public class MapDataView<K,V>
extends swim.structure.collections.ValueOrderedMap<K,V>
implements swim.api.data.MapData<K,V>, MapDataContext
-
Nested Class Summary
-
Field Summary
Fields inherited from class swim.structure.collections.ValueMap
inner, keyForm, valueForm -
Constructor Summary
ConstructorsConstructorDescriptionMapDataView(MapDataBinding dataBinding, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoiddidClear()voidvoiddidDrop(long lower) voiddidRemove(swim.structure.Value key, swim.structure.Value oldValue) voiddidTake(long upper) voiddidUpdate(swim.structure.Value key, swim.structure.Value newValue, swim.structure.Value oldValue) voiddrop(int lower) getIndex(int index) booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) <K2> MapDataView<K2,V> <K2> MapDataView<K2,V> keyForm(swim.structure.Form<K2> keyForm) swim.structure.Valuename()snapshot()voidtake(int upper) <V2> MapDataView<K,V2> valueClass(Class<V2> valueClass) <V2> MapDataView<K,V2> valueForm(swim.structure.Form<V2> valueForm) Methods inherited from class swim.structure.collections.ValueOrderedMap
comparator, firstEntry, firstKey, firstValue, getEntry, headMap, indexOf, inner, iterator, lastEntry, lastKey, lastValue, nextEntry, nextKey, nextValue, previousEntry, previousKey, previousValue, subMap, tailMapMethods inherited from class swim.structure.collections.ValueIterableMap
keyIterator, valueIteratorMethods inherited from class swim.structure.collections.ValueMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keyForm, keySet, put, putAll, remove, size, toString, valueForm, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface swim.api.data.MapData
keyForm, valueFormMethods inherited from interface swim.util.OrderedMap
clear, comparator, containsKey, containsValue, entrySet, firstEntry, firstKey, firstValue, get, getEntry, headMap, indexOf, isEmpty, iterator, keyIterator, keySet, lastEntry, lastKey, lastValue, nextEntry, nextKey, nextValue, previousEntry, previousKey, previousValue, put, putAll, remove, size, subMap, tailMap, valueIterator, values
-
Constructor Details
-
MapDataView
public MapDataView(MapDataBinding dataBinding, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
-
Method Details
-
dataBinding
-
name
public swim.structure.Value name() -
keyForm
-
keyClass
-
valueForm
-
valueClass
-
isResident
public boolean isResident() -
isResident
-
isTransient
public boolean isTransient() -
isTransient
-
getIndex
-
drop
public void drop(int lower) -
take
public void take(int upper) -
snapshot
-
close
public void close() -
didChange
public void didChange()- Specified by:
didChangein interfaceDataContext
-
didCommit
public void didCommit()- Specified by:
didCommitin interfaceDataContext
-
didUpdate
public void didUpdate(swim.structure.Value key, swim.structure.Value newValue, swim.structure.Value oldValue) - Specified by:
didUpdatein interfaceMapDataContext
-
didRemove
public void didRemove(swim.structure.Value key, swim.structure.Value oldValue) - Specified by:
didRemovein interfaceMapDataContext
-
didDrop
public void didDrop(long lower) - Specified by:
didDropin interfaceMapDataContext
-
didTake
public void didTake(long upper) - Specified by:
didTakein interfaceMapDataContext
-
didClear
public void didClear()- Specified by:
didClearin interfaceMapDataContext
-