|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PagedIterator<E>
An iterator that provides paging support for data provided by it. The paged
iterator allows to skip a number of elements in the data it holds and to
retrieve elements in chunks (arrays of fixed size). The paged iterator is provided by
the PagedListModel
.
Example of usage:
Object[] chunk = new Object[10]; PagedListModel model = ...; PagedIterator i = model.getPagedIterator(); i.skip(100); // skip the first 100 elements while (i.next(chunk) > 0) { // do something with the results };
Method Summary | |
---|---|
int |
next(E[] chunk)
Retrieves the next objects from the paged iterator. |
int |
skip(int number)
Skips the given number of elements contained in the paged iterator. |
Method Detail |
---|
int next(E[] chunk)
chunk
- an array to be filled with elements held by the iterator
int skip(int number)
number
- the number of elements to skip
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |