public class Paging extends Object
Paging instruction for control of paging in the Strava API
| Constructor and Description |
|---|
Paging()
Default no-argument constructor assumes that you want the first page, and it should be the default size
|
Paging(Integer page,
Integer pageSize)
Constructor allowing page number and size only
|
Paging(Integer page,
Integer pageSize,
int ignoreFirstN,
int ignoreLastN)
Constructor allowing full control
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getIgnoreFirstN() |
int |
getIgnoreLastN() |
Integer |
getPage() |
Integer |
getPageSize() |
int |
hashCode() |
void |
setIgnoreFirstN(int ignoreFirstN) |
void |
setIgnoreLastN(int ignoreLastN) |
void |
setPage(Integer page) |
void |
setPageSize(Integer pageSize) |
public Paging()
public Paging(Integer page, Integer pageSize)
page - Page to be returned. If you specify 0, page 1 will be returnedpageSize - Size of page to be returned. If you specify 0, the default page size will be used.public Paging(Integer page, Integer pageSize, int ignoreFirstN, int ignoreLastN)
page - Page to be returned. If you specify 0, page 1 will be returnedpageSize - Size of page to be returned. If you specify 0, the default page size will be used.ignoreFirstN - Ignore the first N items in the returned pageignoreLastN - Ignore the last N items in the returned pagepublic boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int getIgnoreFirstN()
public int getIgnoreLastN()
public Integer getPage()
public Integer getPageSize()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void setIgnoreFirstN(int ignoreFirstN)
ignoreFirstN - the ignoreFirstN to setpublic void setIgnoreLastN(int ignoreLastN)
ignoreLastN - the ignoreLastN to setpublic void setPage(Integer page)
page - the page to setpublic void setPageSize(Integer pageSize)
pageSize - the pageSize to setCopyright © 2016 Dan Shannon. All rights reserved.