Class PlaylistTrackPosition.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.special.PlaylistTrackPosition.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
PlaylistTrackPosition
Builder class for building
PlaylistTrackPosition
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setPositions
(int... positions) Sets the positions where the track should be placed in the playlist.Sets the Spotify URI of the track.
-
Constructor Details
-
Builder
public Builder()Default constructor.
-
-
Method Details
-
setUri
Sets the Spotify URI of the track.- Parameters:
uri
- the Spotify URI of the track- Returns:
- this builder instance for method chaining
-
setPositions
Sets the positions where the track should be placed in the playlist.- Parameters:
positions
- the zero-based positions in the playlist- Returns:
- this builder instance for method chaining
-
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.
-