java.lang.Object
swim.store.mem.ListDataModel
- All Implemented Interfaces:
Iterable<Value>,Collection<Value>,List<Value>,ListData<Value>,DataBinding,ListDataBinding,KeyedList<Value>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListDataContextprotected final Valueprotected StoreBinding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanbooleanbooleanaddAll(int index, Collection<? extends Value> values) booleanaddAll(Collection<? extends Value> values) voidclear()voidclose()booleanbooleancontainsAll(Collection<?> values) 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()An immutable copy of thisSTreeList's data.subList(int fromIndex, int toIndex) voidtake(int upper) Object[]toArray()<T> T[]toArray(T[] array) tree()<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
-
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
An immutable copy of thisSTreeList's data. -
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>
-