| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PagedIterator
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(java.lang.Object[] 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(java.lang.Object[] chunk)
int skip(int number)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |