Class PaginatedResponseBase.Pagination
java.lang.Object
com.amilesend.discogs.model.PaginatedResponseBase.Pagination
- Enclosing class:
PaginatedResponseBase<T>
Describes the pagination information for a response.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanGets the URL to navigate to the first page.getItems()The total number of items available.Gets the URL for the last page.Gets the URL for the next page.getPage()The page number associated with the results.getPages()The total number of pages available.The number of items per page.Gets the URL for the previous page.getUrls()The map of URLs used to navigate pages.inthashCode()toString()
-
Method Details
-
getFirstUrl
Gets the URL to navigate to the first page.- Returns:
- the first page URL, or
nullif no pages exist
-
getPreviousUrl
Gets the URL for the previous page.- Returns:
- the previous page URL, or
nullif no pages exist
-
getNextUrl
Gets the URL for the next page.- Returns:
- the next page URL, or
nullif no pages exist
-
getLastUrl
Gets the URL for the last page.- Returns:
- the last page URL, or
nullif no pages exist
-
builder
-
getPage
The page number associated with the results. -
getPages
The total number of pages available. -
getItems
The total number of items available. -
getPerPage
The number of items per page. -
getUrls
-
equals
-
hashCode
-
toString
-