| Modifier and Type | Field and Description |
|---|---|
static NoPage |
INSTANCE
Singleton instance.
|
DEFAULT_OFFSET, NO_LIMIT| Modifier and Type | Method and Description |
|---|---|
Page |
back()
Return the "previous"
Page, if possible. |
Page |
goTo(int page)
|
int |
limit()
Return the maximum number of items on the
Page. |
Page |
next()
Return the "next"
Page. |
int |
offset()
Return the number of items to "skip" (inclusive) before adding items to
the
Page. |
Page |
resize(int size)
Set this
Page to include up to size items. |
Page |
resizeAll(int size)
|
public static NoPage INSTANCE
public int limit()
Pagepublic int offset()
PagePage.public Page resizeAll(int size)
PagePage to include up to size items with the
assumption that all previous Pages contained size
items.
NOTE: This method recalculates all the items on the current Page
as if all preceding Pages also had size items. If
you want to modify this Page to include size without
modifying the assumptions about what was contained on previous
Pages, use the Page.resize(int) method.
public Page resize(int size)
PagePage to include up to size items.
NOTE: This method only modifies the current page size instead of
recalculating all the items on the current Page as if all
preceding Pages also had size items. If you want to
modify this Page to include size items in a manner that
assumes preceding Pages also contained size items,
use the Page.resizeAll(int) method.