Class PlaylistItem


  • public class PlaylistItem
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PlaylistItem​(String name, int start, int length, int index)
      Class constructor - A simple structure to define parameters associated with a playlist item
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()  
      int getLength()
      Number of seconds of track to play
      String getName()
      Name of playlist stream
      int getStart()
      Number of seconds into track to start from
      void setIndex​(int index)  
      String toString()  
      • Methods inherited from class java.lang.Object

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

      • PlaylistItem

        public PlaylistItem​(String name,
                            int start,
                            int length,
                            int index)
        Class constructor - A simple structure to define parameters associated with a playlist item
        Parameters:
        name - - name of the playlist stream
        start - - number of seconds into the track to start from (-2 means live stream)
        length - - number of seconds of track to play
        index - - index in the playlist
    • Method Detail

      • getName

        public String getName()
        Name of playlist stream
        Returns:
        - name of stream
      • getStart

        public int getStart()
        Number of seconds into track to start from
        Returns:
        - number of seconds
      • getLength

        public int getLength()
        Number of seconds of track to play
        Returns:
        - number of seconds
      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)
      • toString

        public String toString()
        Overrides:
        toString in class Object