- java.lang.Object
-
- swim.store.ListDataProxy
-
- All Implemented Interfaces:
Iterable<Value>,Collection<Value>,List<Value>,ListData<Value>,DataBinding,DataContext,ListDataBinding,ListDataContext,KeyedList<Value>
public class ListDataProxy extends Object implements ListDataBinding, ListDataContext
-
-
Field Summary
Fields Modifier and Type Field Description protected ListDataBindingdataBindingprotected ListDataContextdataContext
-
Constructor Summary
Constructors Constructor Description ListDataProxy(ListDataBinding dataBinding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Value value)voidadd(int index, Value value, Object key)booleanadd(Value value)booleanadd(Value value, Object key)booleanaddAll(int index, Collection<? extends Value> values)booleanaddAll(Collection<? extends Value> values)voidclear()voidclose()booleancontains(Object value)booleancontainsAll(Collection<?> values)ListDataBindingdataBinding()ListDataContextdataContext()longdataSize()voiddidChange()voiddidClear()voiddidCommit()voiddidDrop(long lower)voiddidInsert(long index, Value newValue)voiddidRemove(long index, Value oldValue)voiddidTake(long upper)voiddidUpdate(long index, Value newValue, Value oldValue)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()ListDataBindingisResident(boolean isResident)booleanisTransient()ListDataBindingisTransient(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 value, Object key)voidsetDataContext(ListDataContext dataContext)voidsetStoreBinding(StoreBinding storeBinding)intsize()KeyedList<Value>snapshot()StoreBindingstoreBinding()List<Value>subList(int fromIndex, int toIndex)voidtake(int upper)Object[]toArray()<T> T[]toArray(T[] array)<T> TunwrapData(Class<T> dataClass)<V> ListData<V>valueClass(Class<V> valueClass)Form<Value>valueForm()<V> ListData<V>valueForm(Form<V> valueForm)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
dataBinding
protected final ListDataBinding dataBinding
-
dataContext
protected ListDataContext dataContext
-
-
Constructor Detail
-
ListDataProxy
public ListDataProxy(ListDataBinding dataBinding)
-
-
Method Detail
-
dataBinding
public final ListDataBinding dataBinding()
-
dataContext
public final ListDataContext dataContext()
- Specified by:
dataContextin interfaceDataBinding- Specified by:
dataContextin interfaceListDataBinding
-
setDataContext
public void setDataContext(ListDataContext dataContext)
- Specified by:
setDataContextin interfaceListDataBinding
-
storeBinding
public StoreBinding storeBinding()
- Specified by:
storeBindingin interfaceDataBinding
-
setStoreBinding
public void setStoreBinding(StoreBinding storeBinding)
- Specified by:
setStoreBindingin interfaceDataBinding
-
unwrapData
public <T> T unwrapData(Class<T> dataClass)
- Specified by:
unwrapDatain interfaceDataBinding
-
name
public Value name()
- Specified by:
namein interfaceDataBinding- Specified by:
namein interfaceListData<Value>
-
dataSize
public long dataSize()
- Specified by:
dataSizein interfaceDataBinding
-
isResident
public boolean isResident()
- Specified by:
isResidentin interfaceDataBinding- Specified by:
isResidentin interfaceListData<Value>
-
valueClass
public <V> ListData<V> valueClass(Class<V> valueClass)
- Specified by:
valueClassin interfaceListData<Value>
-
isResident
public ListDataBinding isResident(boolean 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
public ListDataBinding isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceDataBinding- Specified by:
isTransientin interfaceListData<Value>- Specified by:
isTransientin interfaceListDataBinding
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
contains
public boolean contains(Object value)
-
containsAll
public boolean containsAll(Collection<?> values)
- Specified by:
containsAllin interfaceCollection<Value>- Specified by:
containsAllin interfaceList<Value>
-
lastIndexOf
public int lastIndexOf(Object value)
- Specified by:
lastIndexOfin interfaceList<Value>
-
add
public boolean add(Value value)
-
addAll
public boolean addAll(Collection<? extends Value> values)
-
addAll
public boolean addAll(int index, Collection<? extends Value> values)
-
remove
public boolean remove(Object value)
-
removeAll
public boolean removeAll(Collection<?> values)
-
retainAll
public boolean retainAll(Collection<?> values)
-
move
public void move(int fromIndex, int toIndex, Object key)
-
clear
public void clear()
-
listIterator
public ListIterator<Value> listIterator()
- Specified by:
listIteratorin interfaceList<Value>
-
listIterator
public ListIterator<Value> listIterator(int index)
- Specified by:
listIteratorin interfaceList<Value>
-
keyIterator
public ListIterator<Object> keyIterator()
- Specified by:
keyIteratorin interfaceKeyedList<Value>
-
entryIterator
public ListIterator<Map.Entry<Object,Value>> entryIterator()
- Specified by:
entryIteratorin interfaceKeyedList<Value>
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
close
public void close()
- Specified by:
closein interfaceDataBinding- Specified by:
closein interfaceListData<Value>
-
didChange
public void didChange()
- Specified by:
didChangein interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommitin interfaceDataContext
-
didUpdate
public void didUpdate(long index, Value newValue, Value oldValue)- Specified by:
didUpdatein interfaceListDataContext
-
didInsert
public void didInsert(long index, Value newValue)- Specified by:
didInsertin interfaceListDataContext
-
didRemove
public void didRemove(long index, 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
-
-