public static final class RequestPagination.Page extends Object
| Modifier and Type | Method and Description |
|---|---|
List<Adaptation> |
getRows()
Returns the rows of the current page, never
null. |
int |
getSize()
Returns the actual size of this page (the number of
rows).
|
boolean |
hasNextPage()
Returns
false if and only if
we are on the last page. |
boolean |
hasPreviousPage()
Returns
false if and only if
we are on the first page. |
boolean |
isEmpty()
Returns whether this page is empty.
|
String |
toString() |
public int getSize()
RequestPagination.setPageSize(int)public boolean isEmpty()
RequestPagination.setPageSize(int)public List<Adaptation> getRows()
null.
The returned List is read only and has a size that is
equal or less that the one specified by the
method RequestPagination.setPageSize(int).
public boolean hasPreviousPage()
false if and only if
we are on the first page.public boolean hasNextPage()
false if and only if
we are on the last page.