java.lang.Object
swim.store.db.ListDataModel
- All Implemented Interfaces:
Iterable<Value>,Collection<Value>,List<Value>,ListData<Value>,STreeDelegate,TreeDelegate,DataBinding,ListDataBinding,KeyedList<Value>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListDataContextprotected final Valueprotected StoreBindingprotected final STreeList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanbooleanbooleanaddAll(int index, Collection<? extends Value> values) booleanaddAll(Collection<? extends Value> values) voidclear()voidclose()booleanbooleancontainsAll(Collection<?> values) final Databasedatabase()longdataSize()voiddrop(int lower) get(int index) getEntry(int index) intbooleanisEmpty()booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) iterator()intlastIndexOf(Object value) listIterator(int index) voidmove(int fromIndex, int toIndex) voidfinal Valuename()remove(int index) booleanbooleanremoveAll(Collection<?> values) booleanretainAll(Collection<?> values) voidsetDataContext(ListDataContext dataContext) voidsetStoreBinding(StoreBinding storeBinding) intsize()snapshot()final Storestore()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) voidsubList(int fromIndex, int toIndex) voidtake(int upper) Object[]toArray()<T> T[]toArray(T[] array) final STreeListtree()voidtreeDidChange(Tree newTree, Tree oldTree) voidtreeDidClear(Tree newTree, Tree oldTree) voidtreeDidCommit(Tree newTree, Tree oldTree) voidtreeDidLoadPage(Page page) final ValuetreeName()<T> TunwrapData(Class<T> dataClass) <V2> ListData<V2>valueClass(Class<V2> valueClass) <V2> ListData<V2>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
name
-
tree
-
dataContext
-
storeBinding
-
-
Constructor Details
-
ListDataModel
-
-
Method Details
-
dataContext
- Specified by:
dataContextin interfaceDataBinding- Specified by:
dataContextin interfaceListDataBinding
-
setDataContext
- Specified by:
setDataContextin interfaceListDataBinding
-
storeBinding
- Specified by:
storeBindingin interfaceDataBinding
-
setStoreBinding
- Specified by:
setStoreBindingin interfaceDataBinding
-
unwrapData
- Specified by:
unwrapDatain interfaceDataBinding
-
tree
-
database
-
store
-
treeName
-
name
- Specified by:
namein interfaceDataBinding- Specified by:
namein interfaceListData<Value>
-
valueForm
-
valueForm
-
valueClass
- Specified by:
valueClassin interfaceListData<Value>
-
dataSize
public long dataSize()- Specified by:
dataSizein interfaceDataBinding
-
isResident
public boolean isResident()- Specified by:
isResidentin interfaceDataBinding- Specified by:
isResidentin interfaceListData<Value>
-
isResident
- Specified by:
isResidentin interfaceDataBinding- Specified by:
isResidentin interfaceListData<Value>- Specified by:
isResidentin interfaceListDataBinding
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfaceDataBinding- Specified by:
isTransientin interfaceListData<Value>
-
isTransient
- Specified by:
isTransientin interfaceDataBinding- Specified by:
isTransientin interfaceListData<Value>- Specified by:
isTransientin interfaceListDataBinding
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<Value>- Specified by:
containsAllin interfaceList<Value>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Value>
-
get
-
set
-
add
-
addAll
-
add
-
addAll
-
remove
-
remove
-
removeAll
-
retainAll
-
drop
public void drop(int lower) -
take
public void take(int upper) -
clear
public void clear() -
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<Value>
-
listIterator
- Specified by:
listIteratorin interfaceList<Value>
-
subList
-
snapshot
-
toArray
-
toArray
public <T> T[] toArray(T[] array) -
close
public void close()- Specified by:
closein interfaceDataBinding- Specified by:
closein interfaceListData<Value>
-
get
-
getEntry
-
getEntry
-
set
-
add
-
add
-
remove
-
move
public void move(int fromIndex, int toIndex) -
move
-
keyIterator
- Specified by:
keyIteratorin interfaceKeyedList<Value>
-
entryIterator
- Specified by:
entryIteratorin interfaceKeyedList<Value>
-
treeDidLoadPage
- Specified by:
treeDidLoadPagein interfaceTreeDelegate
-
treeDidChange
- Specified by:
treeDidChangein interfaceTreeDelegate
-
treeDidCommit
- Specified by:
treeDidCommitin interfaceTreeDelegate
-
treeDidClear
- Specified by:
treeDidClearin interfaceTreeDelegate
-
streeDidUpdate
public void streeDidUpdate(STree newTree, STree oldTree, long index, Value id, Value newValue, Value oldValue) - Specified by:
streeDidUpdatein interfaceSTreeDelegate
-
streeDidInsert
- Specified by:
streeDidInsertin interfaceSTreeDelegate
-
streeDidRemove
- Specified by:
streeDidRemovein interfaceSTreeDelegate
-
streeDidDrop
- Specified by:
streeDidDropin interfaceSTreeDelegate
-
streeDidTake
- Specified by:
streeDidTakein interfaceSTreeDelegate
-