- java.lang.Object
- 
- swim.store.db.ListDataModel
 
- 
- All Implemented Interfaces:
- Iterable<Value>,- Collection<Value>,- List<Value>,- ListData<Value>,- STreeDelegate,- TreeDelegate,- DataBinding,- ListDataBinding,- KeyedList<Value>
 
 public class ListDataModel extends Object implements ListDataBinding, STreeDelegate 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ListDataContextdataContextprotected Valuenameprotected StoreBindingstoreBindingprotected STreeListtree
 - 
Constructor SummaryConstructors Constructor Description ListDataModel(Value name, STreeList tree)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Value value)voidadd(int index, Value element, Object key)booleanadd(Value value)booleanadd(Value element, Object key)booleanaddAll(int index, Collection<? extends Value> values)booleanaddAll(Collection<? extends Value> values)voidclear()voidclose()booleancontains(Object value)booleancontainsAll(Collection<?> values)Databasedatabase()ListDataContextdataContext()longdataSize()voiddrop(int lower)ListIterator<Map.Entry<Object,Value>>entryIterator()Valueget(int index)Valueget(int index, Object key)Map.Entry<Object,Value>getEntry(int index)Map.Entry<Object,Value>getEntry(int index, Object key)intindexOf(Object value)booleanisEmpty()booleanisResident()ListDataModelisResident(boolean isResident)booleanisTransient()ListDataModelisTransient(boolean isTransient)Iterator<Value>iterator()ListIterator<Object>keyIterator()intlastIndexOf(Object value)ListIterator<Value>listIterator()ListIterator<Value>listIterator(int index)voidmove(int fromIndex, int toIndex)voidmove(int fromIndex, int toIndex, Object key)Valuename()Valueremove(int index)Valueremove(int index, Object key)booleanremove(Object value)booleanremoveAll(Collection<?> values)booleanretainAll(Collection<?> values)Valueset(int index, Value value)Valueset(int index, Value element, Object key)voidsetDataContext(ListDataContext dataContext)voidsetStoreBinding(StoreBinding storeBinding)intsize()KeyedList<Value>snapshot()Storestore()StoreBindingstoreBinding()voidstreeDidDrop(STree newTree, STree oldTree, long lower)voidstreeDidInsert(STree newTree, STree oldTree, long index, Value id, Value newValue)voidstreeDidRemove(STree newTree, STree oldTree, long index, Value id, Value oldValue)voidstreeDidTake(STree newTree, STree oldTree, long upper)voidstreeDidUpdate(STree newTree, STree oldTree, long index, Value id, Value newValue, Value oldValue)List<Value>subList(int fromIndex, int toIndex)voidtake(int upper)Object[]toArray()<T> T[]toArray(T[] array)STreeListtree()voidtreeDidChange(Tree newTree, Tree oldTree)voidtreeDidClear(Tree newTree, Tree oldTree)voidtreeDidCommit(Tree newTree, Tree oldTree)voidtreeDidLoadPage(Page page)ValuetreeName()<T> TunwrapData(Class<T> dataClass)<V2> ListData<V2>valueClass(Class<V2> valueClass)Form<Value>valueForm()<V2> ListData<V2>valueForm(Form<V2> valueForm)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.Listequals, hashCode, replaceAll, sort, spliterator
 
- 
 
- 
- 
- 
Field Detail- 
nameprotected final Value name 
 - 
treeprotected final STreeList tree 
 - 
dataContextprotected ListDataContext dataContext 
 - 
storeBindingprotected StoreBinding storeBinding 
 
- 
 - 
Method Detail- 
dataContextpublic ListDataContext dataContext() - Specified by:
- dataContextin interface- DataBinding
- Specified by:
- dataContextin interface- ListDataBinding
 
 - 
setDataContextpublic void setDataContext(ListDataContext dataContext) - Specified by:
- setDataContextin interface- ListDataBinding
 
 - 
storeBindingpublic StoreBinding storeBinding() - Specified by:
- storeBindingin interface- DataBinding
 
 - 
setStoreBindingpublic void setStoreBinding(StoreBinding storeBinding) - Specified by:
- setStoreBindingin interface- DataBinding
 
 - 
unwrapDatapublic <T> T unwrapData(Class<T> dataClass) - Specified by:
- unwrapDatain interface- DataBinding
 
 - 
treepublic final STreeList tree() 
 - 
databasepublic final Database database() 
 - 
storepublic final Store store() 
 - 
treeNamepublic final Value treeName() 
 - 
namepublic final Value name() - Specified by:
- namein interface- DataBinding
- Specified by:
- namein interface- ListData<Value>
 
 - 
valueClasspublic <V2> ListData<V2> valueClass(Class<V2> valueClass) - Specified by:
- valueClassin interface- ListData<Value>
 
 - 
dataSizepublic long dataSize() - Specified by:
- dataSizein interface- DataBinding
 
 - 
isResidentpublic boolean isResident() - Specified by:
- isResidentin interface- DataBinding
- Specified by:
- isResidentin interface- ListData<Value>
 
 - 
isResidentpublic ListDataModel isResident(boolean isResident) - Specified by:
- isResidentin interface- DataBinding
- Specified by:
- isResidentin interface- ListData<Value>
- Specified by:
- isResidentin interface- ListDataBinding
 
 - 
isTransientpublic boolean isTransient() - Specified by:
- isTransientin interface- DataBinding
- Specified by:
- isTransientin interface- ListData<Value>
 
 - 
isTransientpublic ListDataModel isTransient(boolean isTransient) - Specified by:
- isTransientin interface- DataBinding
- Specified by:
- isTransientin interface- ListData<Value>
- Specified by:
- isTransientin interface- ListDataBinding
 
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
containspublic boolean contains(Object value) 
 - 
containsAllpublic boolean containsAll(Collection<?> values) - Specified by:
- containsAllin interface- Collection<Value>
- Specified by:
- containsAllin interface- List<Value>
 
 - 
lastIndexOfpublic int lastIndexOf(Object value) - Specified by:
- lastIndexOfin interface- List<Value>
 
 - 
addpublic boolean add(Value value) 
 - 
addAllpublic boolean addAll(Collection<? extends Value> values) 
 - 
addAllpublic boolean addAll(int index, Collection<? extends Value> values)
 - 
removepublic boolean remove(Object value) 
 - 
removeAllpublic boolean removeAll(Collection<?> values) 
 - 
retainAllpublic boolean retainAll(Collection<?> values) 
 - 
clearpublic void clear() 
 - 
listIteratorpublic ListIterator<Value> listIterator() - Specified by:
- listIteratorin interface- List<Value>
 
 - 
listIteratorpublic ListIterator<Value> listIterator(int index) - Specified by:
- listIteratorin interface- List<Value>
 
 - 
toArraypublic Object[] toArray() 
 - 
toArraypublic <T> T[] toArray(T[] array) 
 - 
closepublic void close() - Specified by:
- closein interface- DataBinding
- Specified by:
- closein interface- ListData<Value>
 
 - 
movepublic void move(int fromIndex, int toIndex, Object key)
 - 
keyIteratorpublic ListIterator<Object> keyIterator() - Specified by:
- keyIteratorin interface- KeyedList<Value>
 
 - 
entryIteratorpublic ListIterator<Map.Entry<Object,Value>> entryIterator() - Specified by:
- entryIteratorin interface- KeyedList<Value>
 
 - 
treeDidLoadPagepublic void treeDidLoadPage(Page page) - Specified by:
- treeDidLoadPagein interface- TreeDelegate
 
 - 
treeDidChangepublic void treeDidChange(Tree newTree, Tree oldTree) - Specified by:
- treeDidChangein interface- TreeDelegate
 
 - 
treeDidCommitpublic void treeDidCommit(Tree newTree, Tree oldTree) - Specified by:
- treeDidCommitin interface- TreeDelegate
 
 - 
treeDidClearpublic void treeDidClear(Tree newTree, Tree oldTree) - Specified by:
- treeDidClearin interface- TreeDelegate
 
 - 
streeDidUpdatepublic void streeDidUpdate(STree newTree, STree oldTree, long index, Value id, Value newValue, Value oldValue) - Specified by:
- streeDidUpdatein interface- STreeDelegate
 
 - 
streeDidInsertpublic void streeDidInsert(STree newTree, STree oldTree, long index, Value id, Value newValue) - Specified by:
- streeDidInsertin interface- STreeDelegate
 
 - 
streeDidRemovepublic void streeDidRemove(STree newTree, STree oldTree, long index, Value id, Value oldValue) - Specified by:
- streeDidRemovein interface- STreeDelegate
 
 - 
streeDidDroppublic void streeDidDrop(STree newTree, STree oldTree, long lower) - Specified by:
- streeDidDropin interface- STreeDelegate
 
 - 
streeDidTakepublic void streeDidTake(STree newTree, STree oldTree, long upper) - Specified by:
- streeDidTakein interface- STreeDelegate
 
 
- 
 
-