public class PagedList<STOREKEY,V>
extends java.lang.Object
implements java.util.List<V>
| Constructor and Description |
|---|
PagedList(STOREKEY headKey,
NodeStore<STOREKEY,STOREKEY,V> nodeStore) |
PagedList(STOREKEY headKey,
NodeStore<STOREKEY,STOREKEY,V> nodeStore,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
V value) |
boolean |
add(V value) |
boolean |
addAll(java.util.Collection<? extends V> c) |
boolean |
addAll(int index,
java.util.Collection<? extends V> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
void |
destroy()
Clear this list with
clear() and then delete the
empty head node. |
void |
eachPage(NodeFunction<STOREKEY,STOREKEY> nodeFunction) |
void |
eachPage(NodeFunction<STOREKEY,STOREKEY> nodeFunction,
STOREKEY startKey) |
boolean |
equals(java.lang.Object o) |
V |
get(int index) |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<V> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<V> |
listIterator() |
java.util.ListIterator<V> |
listIterator(int index) |
java.util.Iterator<Node<STOREKEY,STOREKEY>> |
pageIterator() |
V |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
java.util.Iterator<Node<STOREKEY,STOREKEY>> |
reversePageIterator() |
V |
set(int index,
V value) |
int |
size() |
java.util.List<V> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] t) |
public PagedList(STOREKEY headKey, NodeStore<STOREKEY,STOREKEY,V> nodeStore, int pageSize)
public void eachPage(NodeFunction<STOREKEY,STOREKEY> nodeFunction)
public void eachPage(NodeFunction<STOREKEY,STOREKEY> nodeFunction, STOREKEY startKey)
public boolean add(V value)
public boolean addAll(java.util.Collection<? extends V> c)
public boolean addAll(int index,
java.util.Collection<? extends V> c)
addAll in interface java.util.List<V>public void clear()
public void destroy()
clear() and then delete the
empty head node.public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean equals(java.lang.Object o)
public boolean isEmpty()
public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<V>public java.util.Iterator<V> iterator()
public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<V>public java.util.ListIterator<V> listIterator()
listIterator in interface java.util.List<V>public java.util.ListIterator<V> listIterator(int index)
listIterator in interface java.util.List<V>public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.util.List<V> subList(int fromIndex, int toIndex)
subList in interface java.util.List<V>public java.lang.Object[] toArray()