Class PageOptions
java.lang.Object
org.sourcelab.github.client.request.PageOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PageOptionsParses the given url and creates a PageOptions instance from the parameters.intgetPage()inttoString()
-
Constructor Details
-
PageOptions
public PageOptions() -
PageOptions
public PageOptions(int page, int perPage)
-
-
Method Details
-
getPage
public int getPage() -
getPerPage
public int getPerPage() -
fromUrl
Parses the given url and creates a PageOptions instance from the parameters.- Parameters:
url- The url to parse for per_page and page parameters.- Returns:
- PageOptions instance populated from the supplied url.
- Throws:
IllegalArgumentException- if passed an invalid url.
-
toString
-