public interface Pagination
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_OFFSET
Default offset (in records) it client does not provide one.
|
static int |
DEFAULT_PAGE_LIMIT
Default page limit (in records) it client does not provide one.
|
static int |
MAX_PAGE_LIMIT
Maximum allowable page limit (in records).
|
Modifier and Type | Method and Description |
---|---|
int |
getLimit()
Get the page limit.
|
int |
getOffset()
Get the page offset.
|
Long |
getPageTotals()
Get the total size of the collection.
|
boolean |
isDefaultInstance()
Is this the default instance (not present).
|
boolean |
returnPageTotals()
Whether or not to fetch the collection size or not.
|
void |
setPageTotals(Long pageTotals)
Set the total size of the collection.
|
static final int DEFAULT_OFFSET
static final int DEFAULT_PAGE_LIMIT
static final int MAX_PAGE_LIMIT
int getOffset()
int getLimit()
boolean returnPageTotals()
Long getPageTotals()
void setPageTotals(Long pageTotals)
pageTotals
- the total size.boolean isDefaultInstance()
Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.