T
- Type of things being paginatedpublic interface Pagination<T> extends Serializable
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_PAGE |
static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
OptionalInt |
getFirstPage()
Gets the number of the first page if this is not the current page.
|
OptionalInt |
getLastPage()
Gets the number of the last page if this is not the current page.
|
OptionalInt |
getNextPage()
Gets next page if it exists.
|
int |
getNumResults()
Get the size of all the data.
|
int |
getPage()
Gets the number of the current page.
|
List<T> |
getPageOfData()
Get a list of results corresponding to the current page of data.
|
int |
getPerPage()
Gets the maximum size of a page.
|
OptionalInt |
getPreviousPage()
Gets previous page if it exists.
|
static final long serialVersionUID
static final int FIRST_PAGE
int getPage()
int getPerPage()
OptionalInt getFirstPage()
OptionalInt getLastPage()
OptionalInt getNextPage()
OptionalInt getPreviousPage()
List<T> getPageOfData()
int getNumResults()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.