Class PlaylistTrack.Builder

    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      Modifier and Type Method Description
      PlaylistTrack build()
      Build a model object with the information set in the builder object.
      PlaylistTrack.Builder setAddedAt​(java.util.Date addedAt)
      Set the "added at" date of the playlist track to be built.
      PlaylistTrack.Builder setAddedBy​(User addedBy)
      Set the user who added the track to the playlist.
      PlaylistTrack.Builder setIsLocal​(java.lang.Boolean isLocal)
      Set whether the track to be built is local or not.
      PlaylistTrack.Builder setTrack​(Track track)
      Set the full track object of the playlist track to be built.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setAddedAt

        public PlaylistTrack.Builder setAddedAt​(java.util.Date addedAt)
        Set the "added at" date of the playlist track to be built.
        Parameters:
        addedAt - The date and time the track was added.
        Returns:
        A PlaylistTrack.Builder.
      • setIsLocal

        public PlaylistTrack.Builder setIsLocal​(java.lang.Boolean isLocal)
        Set whether the track to be built is local or not.
        Parameters:
        isLocal - Whether this track is a local file or not.
        Returns:
        A PlaylistTrack.Builder.
      • build

        public PlaylistTrack 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.