- 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>,swim.api.data.ListData<V>,DataContext,ListDataContext,swim.util.KeyedList<V>
public class ListDataView<V> extends swim.structure.collections.ValueKeyedList<V> implements swim.api.data.ListData<V>, ListDataContext
-
-
Constructor Summary
Constructors Constructor Description ListDataView(ListDataBinding dataBinding, swim.structure.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, swim.structure.Value newValue)voiddidRemove(long index, swim.structure.Value oldValue)voiddidTake(long upper)voiddidUpdate(long index, swim.structure.Value newValue, swim.structure.Value oldValue)voiddrop(int lower)booleanisResident()ListDataView<V>isResident(boolean isResident)booleanisTransient()ListDataView<V>isTransient(boolean isTransient)swim.structure.Valuename()swim.util.KeyedList<V>snapshot()voidtake(int upper)<V> ListDataView<V>valueClass(Class<V> valueClass)<V> ListDataView<V>valueForm(swim.structure.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 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, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
dataBinding
public ListDataBinding dataBinding()
-
name
public swim.structure.Value name()
- Specified by:
namein interfaceswim.api.data.ListData<V>
-
valueForm
public <V> ListDataView<V> valueForm(swim.structure.Form<V> valueForm)
-
valueClass
public <V> ListDataView<V> valueClass(Class<V> valueClass)
-
isResident
public boolean isResident()
- Specified by:
isResidentin interfaceswim.api.data.ListData<V>
-
isResident
public ListDataView<V> isResident(boolean isResident)
- Specified by:
isResidentin interfaceswim.api.data.ListData<V>
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceswim.api.data.ListData<V>
-
isTransient
public ListDataView<V> isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceswim.api.data.ListData<V>
-
drop
public void drop(int lower)
- Specified by:
dropin interfaceswim.api.data.ListData<V>
-
take
public void take(int upper)
- Specified by:
takein interfaceswim.api.data.ListData<V>
-
snapshot
public swim.util.KeyedList<V> snapshot()
- Specified by:
snapshotin interfaceswim.api.data.ListData<V>
-
close
public void close()
- Specified by:
closein interfaceswim.api.data.ListData<V>
-
didChange
public void didChange()
- Specified by:
didChangein interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommitin interfaceDataContext
-
didUpdate
public void didUpdate(long index, swim.structure.Value newValue, swim.structure.Value oldValue)- Specified by:
didUpdatein interfaceListDataContext
-
didInsert
public void didInsert(long index, swim.structure.Value newValue)- Specified by:
didInsertin interfaceListDataContext
-
didRemove
public void didRemove(long index, swim.structure.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
-
-