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()
Default constructor sets up defaults for an empty paging object.
|
Paging(Integer numTotal)
Creates a new "full" Paging object (without any previous or next pages).
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getBeginIndex()
Retrieve the numeric index representing the first item in this page.
|
Integer |
getEndIndex()
Retrieve the numeric index representing the last item in this page.
|
String |
getNextPageURL()
Retrieve the URL for the next page of results, or null if there are no more pages.
|
Integer |
getNumTotal()
Retrieve the total number of items across all pages.
|
Integer |
getPageSize()
Retrieve the number of items included in each page.
|
String |
getPreviousPageURL()
Retrieve the URL for the previous page of results, or null if there is no previous page.
|
Boolean |
hasMore()
Returns true iff there are more (unretrieved) pages for the paging that this object represents.
|
void |
setBeginIndex(Integer begin)
Set the numeric index representing the first item in this page.
|
void |
setEndIndex(Integer end)
Set the numeric index representing the last item in this page.
|
void |
setNextPageURL(String next)
Set the URL for the next page of results, or null if there are no more pages.
|
void |
setNumTotal(Integer numTotal)
Set the total number of items across all pages.
|
void |
setPageSize(Integer pageSize)
Set the number of items included in each page.
|
void |
setPreviousPageURL(String previous)
Set the URL for the previous page of results, or null if there is no previous page.
|
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 containingpublic Integer getNumTotal()
public void setNumTotal(Integer numTotal)
numTotal - of items across all pagespublic String getNextPageURL()
public void setNextPageURL(String next)
next - URL for the next page of resultspublic String getPreviousPageURL()
public void setPreviousPageURL(String previous)
previous - URL for the previous page of resultspublic Integer getPageSize()
public void setPageSize(Integer pageSize)
pageSize - number of items included in each pagepublic Integer getEndIndex()
public void setEndIndex(Integer end)
end - numeric index of last item in this pagepublic Integer getBeginIndex()
public void setBeginIndex(Integer begin)
begin - numeric index of first item in this pagepublic Boolean hasMore()
Copyright © 2018–2021 ODPi. All rights reserved.