Class SearchResult.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.special.SearchResult.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
SearchResult
Builder class for building
SearchResult
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAlbums
(Paging<AlbumSimplified> albums) The albums setter.setArtists
(Paging<Artist> artists) The artists setter.setEpisodes
(Paging<EpisodeSimplified> episodes) The episodes setter.setPlaylists
(Paging<PlaylistSimplified> playlists) The playlists setter.setShows
(Paging<ShowSimplified> shows) The shows setter.The tracks setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAlbums
The albums setter.- Parameters:
albums
- Albums from the search result.- Returns:
- A
SearchResult.Builder
.
-
setArtists
The artists setter.- Parameters:
artists
- Artists from the search result.- Returns:
- A
SearchResult.Builder
.
-
setEpisodes
The episodes setter.- Parameters:
episodes
- Episodes from the search result.- Returns:
- A
SearchResult.Builder
.
-
setPlaylists
The playlists setter.- Parameters:
playlists
- Playlists from the search result.- Returns:
- A
SearchResult.Builder
.
-
setShows
The shows setter.- Parameters:
shows
- Shows from the search result.- Returns:
- A
SearchResult.Builder
.
-
setTracks
The tracks setter.- Parameters:
tracks
- Tracks from the search result.- Returns:
- A
SearchResult.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-