- 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 void
close()
ListDataBinding
dataBinding()
void
didChange()
void
didClear()
void
didCommit()
void
didDrop(long lower)
void
didInsert(long index, Value newValue)
void
didRemove(long index, Value oldValue)
void
didTake(long upper)
void
didUpdate(long index, Value newValue, Value oldValue)
void
drop(int lower)
boolean
isResident()
ListDataView<V>
isResident(boolean isResident)
boolean
isTransient()
ListDataView<V>
isTransient(boolean isTransient)
Value
name()
KeyedList<V>
snapshot()
void
take(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:
valueClass
in interfaceListData<V>
- Overrides:
valueClass
in classValueKeyedList<V>
-
isResident
public boolean isResident()
- Specified by:
isResident
in interfaceListData<V>
-
isResident
public ListDataView<V> isResident(boolean isResident)
- Specified by:
isResident
in interfaceListData<V>
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceListData<V>
-
isTransient
public ListDataView<V> isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceListData<V>
-
didChange
public void didChange()
- Specified by:
didChange
in interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommit
in interfaceDataContext
-
didUpdate
public void didUpdate(long index, Value newValue, Value oldValue)
- Specified by:
didUpdate
in interfaceListDataContext
-
didInsert
public void didInsert(long index, Value newValue)
- Specified by:
didInsert
in interfaceListDataContext
-
didRemove
public void didRemove(long index, Value oldValue)
- Specified by:
didRemove
in interfaceListDataContext
-
didDrop
public void didDrop(long lower)
- Specified by:
didDrop
in interfaceListDataContext
-
didTake
public void didTake(long upper)
- Specified by:
didTake
in interfaceListDataContext
-
didClear
public void didClear()
- Specified by:
didClear
in interfaceListDataContext
-
-