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 classPaginatedResponseBase.PaginatedResponseBaseBuilder<T, C extends PaginatedResponseBase<T>, B extends PaginatedResponseBase.PaginatedResponseBaseBuilder<T,C, B>> static classDescribes the pagination information for a response. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe 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.booleanhasFirst()Determines if there is a first page available for navigation.inthashCode()booleanhasLast()Determines if there is a last page available for navigation.booleanhasNext()Determines if there is a next page available for navigation.booleanDetermines 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:
trueif there is a first page; else,false
-
getPrevious
Gets the previous page.- Returns:
- the previous page, or
nullif no pages exist
-
hasPrevious
public boolean hasPrevious()Determines if there is a previous page available for navigation.- Returns:
trueif there is a previous page; else,false
-
getNext
-
hasNext
public boolean hasNext()Determines if there is a next page available for navigation.- Returns:
trueif there is a next page; else,false
-
getLast
-
hasLast
public boolean hasLast()Determines if there is a last page available for navigation.- Returns:
trueif there is a last page; else,false
-
getConnection
The underlying API connection used to navigate response pages. -
getPagination
-
equals
-
hashCode
-
toString
-