Class SearchRequest
java.lang.Object
com.amilesend.discogs.model.PaginatedRequestBase
com.amilesend.discogs.model.database.SearchRequest
- All Implemented Interfaces:
QueryParameterBasedRequest
The request to search for resources
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSearchRequest.SearchRequestBuilder<C extends SearchRequest, B extends SearchRequest.SearchRequestBuilder<C,B>> Nested classes/interfaces inherited from class PaginatedRequestBase
PaginatedRequestBase.PaginatedRequestBaseBuilder<C,B> -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchRequest.SearchRequestBuilder<?, ?> builder()booleangetAnv()Artist ANV (optional).The artist name (optional).Barcode (optional).Catalog number (i.e., "catno") (optional).The contributor username (optional).Release country (optional).Credit (optional).Release format (optional).getGenre()Genre (optional).getLabel()Label (optional).getQuery()The search query (optional).The release title (optional).getStyle()Style (optional).The submitter username (optional).getTitle()The title (optional).getTrack()Track name (optional).getType()The resource type (optional).getYear()Release year (optional).inthashCode()okhttp3.HttpUrl.BuilderpopulateQueryParameters(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder.toString()Methods inherited from class PaginatedRequestBase
getPage, getPerPage
-
Method Details
-
populateQueryParameters
public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder) Description copied from interface:QueryParameterBasedRequestHelper method to populate query parameters of aHttpUrl.Builder.- Specified by:
populateQueryParametersin interfaceQueryParameterBasedRequest- Overrides:
populateQueryParametersin classPaginatedRequestBase- Parameters:
urlBuilder- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
-
getQuery
The search query (optional). -
getType
-
getTitle
The title (optional). -
getReleaseTitle
The release title (optional). -
getCredit
Credit (optional). -
getArtist
The artist name (optional). -
getAnv
Artist ANV (optional). -
getLabel
Label (optional). -
getGenre
Genre (optional). -
getStyle
Style (optional). -
getCountry
Release country (optional). -
getYear
Release year (optional). -
getFormat
Release format (optional). -
getCatalogNumber
Catalog number (i.e., "catno") (optional). -
getBarcode
Barcode (optional). -
getTrack
Track name (optional). -
getSubmitter
The submitter username (optional). -
getContributor
The contributor username (optional). -
equals
- Overrides:
equalsin classPaginatedRequestBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classPaginatedRequestBase
-
toString
- Overrides:
toStringin classPaginatedRequestBase
-