public class PagedListLocation<STOREKEY>
extends java.lang.Object
Node
but also includes some meta information about
where in the page of data represented by a Node in
PagedList.| Constructor and Description |
|---|
PagedListLocation(NodeStore<STOREKEY,STOREKEY,?> nodeStore,
STOREKEY key) |
PagedListLocation(NodeStore<STOREKEY,STOREKEY,?> nodeStore,
STOREKEY key,
Node<STOREKEY,STOREKEY> node) |
PagedListLocation(NodeStore<STOREKEY,STOREKEY,?> nodeStore,
STOREKEY key,
Node<STOREKEY,STOREKEY> node,
int index) |
| Modifier and Type | Method and Description |
|---|---|
STOREKEY |
getData()
Return the data element stored in the node at
getIndex(). |
int |
getIndex() |
STOREKEY |
getKey() |
Node<STOREKEY,STOREKEY> |
getNode() |
PagedListLocation<STOREKEY> |
index(int index)
Set the index / position of this PagedListLocation
and return this.
|
PagedListLocation<STOREKEY> |
next() |
STOREKEY |
nextKey() |
PagedListLocation<STOREKEY> |
prev() |
STOREKEY |
prevKey() |
void |
remove()
Calls store on the nodeStore with the current key and node.
|
void |
setKey(STOREKEY key)
Set the key at which this node is stored.
|
int |
size() |
void |
store()
Calls store on the nodeStore with the current key and node.
|
public PagedListLocation(NodeStore<STOREKEY,STOREKEY,?> nodeStore, STOREKEY key, Node<STOREKEY,STOREKEY> node, int index)
public PagedListLocation(NodeStore<STOREKEY,STOREKEY,?> nodeStore, STOREKEY key, Node<STOREKEY,STOREKEY> node)
public STOREKEY nextKey()
public STOREKEY prevKey()
public PagedListLocation<STOREKEY> next()
public PagedListLocation<STOREKEY> prev()
public PagedListLocation<STOREKEY> index(int index)
public int getIndex()
public STOREKEY getData()
getIndex().public STOREKEY getKey()
public void setKey(STOREKEY key)
public void store()
public void remove()
public int size()