- 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 ListDataBinding
dataBinding
protected ListDataContext
dataContext
-
Constructor Summary
Constructors Constructor Description ListDataProxy(ListDataBinding dataBinding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Value value)
void
add(int index, Value value, Object key)
boolean
add(Value value)
boolean
add(Value value, Object key)
boolean
addAll(int index, Collection<? extends Value> values)
boolean
addAll(Collection<? extends Value> values)
void
clear()
void
close()
boolean
contains(Object value)
boolean
containsAll(Collection<?> values)
ListDataBinding
dataBinding()
ListDataContext
dataContext()
long
dataSize()
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)
ListIterator<Map.Entry<Object,Value>>
entryIterator()
Value
get(int index)
Value
get(int index, Object key)
Map.Entry<Object,Value>
getEntry(int index)
Map.Entry<Object,Value>
getEntry(int index, Object key)
int
indexOf(Object value)
boolean
isEmpty()
boolean
isResident()
ListDataBinding
isResident(boolean isResident)
boolean
isTransient()
ListDataBinding
isTransient(boolean isTransient)
Iterator<Value>
iterator()
ListIterator<Object>
keyIterator()
int
lastIndexOf(Object value)
ListIterator<Value>
listIterator()
ListIterator<Value>
listIterator(int index)
void
move(int fromIndex, int toIndex)
void
move(int fromIndex, int toIndex, Object key)
Value
name()
Value
remove(int index)
Value
remove(int index, Object key)
boolean
remove(Object value)
boolean
removeAll(Collection<?> values)
boolean
retainAll(Collection<?> values)
Value
set(int index, Value value)
Value
set(int index, Value value, Object key)
void
setDataContext(ListDataContext dataContext)
void
setStoreBinding(StoreBinding storeBinding)
int
size()
KeyedList<Value>
snapshot()
StoreBinding
storeBinding()
List<Value>
subList(int fromIndex, int toIndex)
void
take(int upper)
Object[]
toArray()
<T> T[]
toArray(T[] array)
<T> T
unwrapData(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:
dataContext
in interfaceDataBinding
- Specified by:
dataContext
in interfaceListDataBinding
-
setDataContext
public void setDataContext(ListDataContext dataContext)
- Specified by:
setDataContext
in interfaceListDataBinding
-
storeBinding
public StoreBinding storeBinding()
- Specified by:
storeBinding
in interfaceDataBinding
-
setStoreBinding
public void setStoreBinding(StoreBinding storeBinding)
- Specified by:
setStoreBinding
in interfaceDataBinding
-
unwrapData
public <T> T unwrapData(Class<T> dataClass)
- Specified by:
unwrapData
in interfaceDataBinding
-
name
public Value name()
- Specified by:
name
in interfaceDataBinding
- Specified by:
name
in interfaceListData<Value>
-
dataSize
public long dataSize()
- Specified by:
dataSize
in interfaceDataBinding
-
isResident
public boolean isResident()
- Specified by:
isResident
in interfaceDataBinding
- Specified by:
isResident
in interfaceListData<Value>
-
valueClass
public <V> ListData<V> valueClass(Class<V> valueClass)
- Specified by:
valueClass
in interfaceListData<Value>
-
isResident
public ListDataBinding isResident(boolean isResident)
- Specified by:
isResident
in interfaceDataBinding
- Specified by:
isResident
in interfaceListData<Value>
- Specified by:
isResident
in interfaceListDataBinding
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceDataBinding
- Specified by:
isTransient
in interfaceListData<Value>
-
isTransient
public ListDataBinding isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceDataBinding
- Specified by:
isTransient
in interfaceListData<Value>
- Specified by:
isTransient
in interfaceListDataBinding
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
contains
public boolean contains(Object value)
-
containsAll
public boolean containsAll(Collection<?> values)
- Specified by:
containsAll
in interfaceCollection<Value>
- Specified by:
containsAll
in interfaceList<Value>
-
lastIndexOf
public int lastIndexOf(Object value)
- Specified by:
lastIndexOf
in 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:
listIterator
in interfaceList<Value>
-
listIterator
public ListIterator<Value> listIterator(int index)
- Specified by:
listIterator
in interfaceList<Value>
-
keyIterator
public ListIterator<Object> keyIterator()
- Specified by:
keyIterator
in interfaceKeyedList<Value>
-
entryIterator
public ListIterator<Map.Entry<Object,Value>> entryIterator()
- Specified by:
entryIterator
in interfaceKeyedList<Value>
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
close
public void close()
- Specified by:
close
in interfaceDataBinding
- Specified by:
close
in interfaceListData<Value>
-
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
-
-