Class PlaybackQueue.Builder
- java.lang.Object
-
- se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
-
- se.michaelthelin.spotify.model_objects.special.PlaybackQueue.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- PlaybackQueue
public static final class PlaybackQueue.Builder extends AbstractModelObject.Builder
Builder class for buildingPlaybackQueueinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlaybackQueuebuild()Build a model object with the information set in the builder object.PlaybackQueue.BuildersetQueue(List<Track> queue)The tracks that are in the user's queue for the upcoming playback setter.
-
-
-
Method Detail
-
setQueue
public PlaybackQueue.Builder setQueue(List<Track> queue)
The tracks that are in the user's queue for the upcoming playback setter.- Parameters:
queue- The tracks that are in the user's queue for the upcoming playback.- Returns:
- A
PlaybackQueue.Builder.
-
build
public PlaybackQueue build()
Description copied from interface:IModelObject.BuilderBuild 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.
-
-