public interface Pagination
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Pagination.PaginationBuilder
The builder of
Pagination |
static interface |
Pagination.PaginationBuilderProvider
A provider of
Pagination.PaginationBuilder where it will create from the Long value |
| Modifier and Type | Method and Description |
|---|---|
long |
getLimit() |
long |
getPageNumber()
Returns the page to be returned.
|
long |
getPageSize()
Returns the number of items to be returned.
|
long |
getSkip() |
Pagination |
next()
Returns the
Pagination requesting the next Pagination. |
static Pagination.PaginationBuilder |
page(long page)
A builder to
Pagination, as the first step it defines the page number or the page index that starts from page one. |
Pagination |
unmodifiable()
Returns a pagination instance that is read-only, in other words, that is not allowed to use the
next(). |
long getPageNumber()
long getPageSize()
long getLimit()
long getSkip()
Pagination next()
Pagination requesting the next Pagination.Pagination unmodifiable()
next().Pagination instancestatic Pagination.PaginationBuilder page(long page)
Pagination, as the first step it defines the page number or the page index that starts from page one.page - the page indexPagination.PaginationBuilder instanceIllegalArgumentException - when page is lesser equals than zeroCopyright © 2017–2022 Eclipse Foundation. All rights reserved.