Class PaginatedResponseBase<T>
java.lang.Object
com.amilesend.discogs.model.PaginatedResponseBase<T>
- Type Parameters:
T
- The response implementation type
- Direct Known Subclasses:
GetArtistReleasesResponse, GetCollectionItemsByFolderResponse, GetCollectionItemsByReleaseResponse, GetExportsResponse, GetInventoryResponse, GetLabelReleasesResponse, GetMasterReleaseVersionsResponse, GetOrderMessagesResponse, GetOrdersResponse, GetUploadsResponse, GetUserContributionsResponse, GetUserListsResponse, GetUserSubmissionsResponse, GetWantListResponse, SearchResponse
Defines a paginated response with a limited set of results.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
PaginatedResponseBase.PaginatedResponseBaseBuilder<T, C extends PaginatedResponseBase<T>, B extends PaginatedResponseBase.PaginatedResponseBaseBuilder<T,
C, B>> static class
Describes the pagination information for a response. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The underlying API connection used to navigate response pages.getFirst()
Gets the first page.getLast()
Gets the last page.getNext()
Gets the next page.The pagination information.Gets the previous page.getType()
Defines the method to return the implementation class type.boolean
hasFirst()
Determines if there is a first page available for navigation.int
hashCode()
boolean
hasLast()
Determines if there is a last page available for navigation.boolean
hasNext()
Determines if there is a next page available for navigation.boolean
Determines if there is a previous page available for navigation.toString()
-
Method Details
-
getType
-
getFirst
-
hasFirst
public boolean hasFirst()Determines if there is a first page available for navigation.- Returns:
true
if there is a first page; else,false
-
getPrevious
Gets the previous page.- Returns:
- the previous page, or
null
if no pages exist
-
hasPrevious
public boolean hasPrevious()Determines if there is a previous page available for navigation.- Returns:
true
if there is a previous page; else,false
-
getNext
-
hasNext
public boolean hasNext()Determines if there is a next page available for navigation.- Returns:
true
if there is a next page; else,false
-
getLast
-
hasLast
public boolean hasLast()Determines if there is a last page available for navigation.- Returns:
true
if there is a last page; else,false
-
getConnection
The underlying API connection used to navigate response pages. -
getPagination
-
equals
-
hashCode
-
toString
-