Interface Playlist

    • Method Detail

      • getDescription

        String getDescription()
        Description.
        Returns:
        description
      • setDescription

        void setDescription​(String description)
        Set description.
        Parameters:
        description - description
      • setLiking

        void setLiking​(AudioSong.Liking liking)
        Set liking.
        Parameters:
        liking - liking
      • getTrackCount

        int getTrackCount()
        Number of tracks in this playlist.
        Returns:
        track count
      • getTracks

        Track[] getTracks()
        Get all tracks from this playlist.
        Returns:
        array of tracks
      • getTrack

        Track getTrack​(long id)
        Gets the track in this playlist with the specified persistent id.
        Parameters:
        id - persistent id
        Returns:
        track or null, if not found
      • getTrack

        Track getTrack​(String id)
        Gets the track in this playlist with the specified persistent id.
        Parameters:
        id - persistent id
        Returns:
        track or null, if not found
      • createPlaylist

        Playlist createPlaylist()
        Creates a Playlist in this playlist.
        Returns:
        the new playlist
      • createFolder

        Playlist createFolder()
        Creates a Folder in this playlist.
        Returns:
        the new folder
      • getParent

        Playlist getParent()
        Returns the parent of this playlist or null if there is none.
        Returns:
        the parent of this playlist
      • addFiles

        void addFiles​(Path... files)
        Add files to playlist.
        Parameters:
        files - files to add
      • addTracks

        void addTracks​(Track... tracks)
        Add tracks to playlist.
        Parameters:
        tracks - files to add
      • addTracks

        void addTracks​(Long... ids)
        Add tracks to playlist.
        Parameters:
        ids - track ids
      • delete

        void delete()
        Delete this playlist.
      • move

        void move​(Playlist newParentPlaylist)
        Moves this playlist to some other playlist.
        Parameters:
        newParentPlaylist - new parent playlist
      • play

        void play()
        Play this playlist in iTunes.