public class Paging extends ObjectPrinter
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
begin
Specifies the numeric index at which this page of results starts.
|
protected Integer |
end
Specifies the numeric index at which this page of results ends.
|
protected String |
next
Specifies the URL to the next page of results, within a given IGC environment.
|
protected Integer |
numTotal
Specifies the total number of items that exist across all pages.
|
protected Integer |
pageSize
Specifies the number of results within each page.
|
protected String |
previous
Specifies the URL to the previous page of results, within a given IGC environment.
|
| Constructor and Description |
|---|
Paging() |
Paging(Integer numTotal)
Creates a new "full" Paging object (without any previous or next pages).
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getBeginIndex() |
Integer |
getEndIndex() |
static String |
getIgcTypeId() |
String |
getNextPageURL() |
Integer |
getNumTotal() |
Integer |
getPageSize() |
String |
getPreviousPageURL() |
Boolean |
hasMore()
Returns true iff there are more (unretrieved) pages for the paging that this object represents.
|
void |
setBeginIndex(Integer begin) |
void |
setEndIndex(Integer end) |
void |
setNextPageURL(String next) |
void |
setNumTotal(Integer numTotal) |
void |
setPageSize(Integer pageSize) |
void |
setPreviousPageURL(String previous) |
getAllFields, toStringprotected Integer numTotal
protected String next
protected String previous
protected Integer pageSize
protected Integer end
protected Integer begin
public Paging()
public Paging(Integer numTotal)
numTotal - total number of objects that this "page" represents containingCopyright © 2018–2019 ODPi. All rights reserved.