- java.lang.Object
-
- swim.structure.collections.ValueIterable<T>
-
- swim.structure.collections.ValueCollection<T>
-
- swim.structure.collections.ValueList<T>
-
- swim.structure.collections.ValueKeyedList<V>
-
- swim.store.ListDataView<V>
-
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<V>,ListData<V>,DataContext,ListDataContext,KeyedList<V>
public class ListDataView<V> extends ValueKeyedList<V> implements ListData<V>, ListDataContext
-
-
Field Summary
-
Fields inherited from class swim.structure.collections.ValueIterable
inner, valueForm
-
-
Constructor Summary
Constructors Constructor Description ListDataView(ListDataBinding dataBinding, Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ListDataBindingdataBinding()voiddidChange()voiddidClear()voiddidCommit()voiddidDrop(long lower)voiddidInsert(long index, Value newValue)voiddidRemove(long index, Value oldValue)voiddidTake(long upper)voiddidUpdate(long index, Value newValue, Value oldValue)voiddrop(int lower)booleanisResident()ListDataView<V>isResident(boolean isResident)booleanisTransient()ListDataView<V>isTransient(boolean isTransient)Valuename()KeyedList<V>snapshot()voidtake(int upper)<V> ListDataView<V>valueClass(Class<V> valueClass)<V> ListDataView<V>valueForm(Form<V> valueForm)-
Methods inherited from class swim.structure.collections.ValueKeyedList
add, add, entryIterator, get, getEntry, getEntry, inner, keyIterator, move, move, remove, set
-
Methods inherited from class swim.structure.collections.ValueList
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
-
Methods inherited from class swim.structure.collections.ValueCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
-
Methods inherited from class swim.structure.collections.ValueIterable
iterator, valueForm
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface swim.util.KeyedList
add, add, entryIterator, get, getEntry, getEntry, keyIterator, move, move, remove, set
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Constructor Detail
-
ListDataView
public ListDataView(ListDataBinding dataBinding, Form<V> valueForm)
-
-
Method Detail
-
dataBinding
public ListDataBinding dataBinding()
-
valueForm
public <V> ListDataView<V> valueForm(Form<V> valueForm)
-
valueClass
public <V> ListDataView<V> valueClass(Class<V> valueClass)
- Specified by:
valueClassin interfaceListData<V>- Overrides:
valueClassin classValueKeyedList<V>
-
isResident
public boolean isResident()
- Specified by:
isResidentin interfaceListData<V>
-
isResident
public ListDataView<V> isResident(boolean isResident)
- Specified by:
isResidentin interfaceListData<V>
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceListData<V>
-
isTransient
public ListDataView<V> isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceListData<V>
-
didChange
public void didChange()
- Specified by:
didChangein interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommitin interfaceDataContext
-
didUpdate
public void didUpdate(long index, Value newValue, Value oldValue)- Specified by:
didUpdatein interfaceListDataContext
-
didInsert
public void didInsert(long index, Value newValue)- Specified by:
didInsertin interfaceListDataContext
-
didRemove
public void didRemove(long index, Value oldValue)- Specified by:
didRemovein interfaceListDataContext
-
didDrop
public void didDrop(long lower)
- Specified by:
didDropin interfaceListDataContext
-
didTake
public void didTake(long upper)
- Specified by:
didTakein interfaceListDataContext
-
didClear
public void didClear()
- Specified by:
didClearin interfaceListDataContext
-
-