Class DefaultPlayListProvider
java.lang.Object
de.pottgames.tuningfork.jukebox.playlist.DefaultPlayListProvider
- All Implemented Interfaces:
PlayListProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds aPlayListto the end of the queue.Adds allPlayLists of the given array to the end of the queue.booleanhasNext()Returns true if aPlayListis available viaPlayListProvider.next().next()Returns the next PlayList.Removes aPlayListfrom the queue.toString()
-
Constructor Details
-
DefaultPlayListProvider
public DefaultPlayListProvider()
-
-
Method Details
-
add
Adds aPlayListto the end of the queue.- Parameters:
list- the playlist- Returns:
- the DefaultPlayListProvider for chaining
-
addAll
Adds allPlayLists of the given array to the end of the queue.- Parameters:
lists- an array of playlists- Returns:
- the DefaultPlayListProvider for chaining
-
remove
Removes aPlayListfrom the queue.- Parameters:
list- the playlist- Returns:
- the DefaultPlayListProvider for chaining
-
next
Description copied from interface:PlayListProviderReturns the next PlayList. May be null if none is available.- Specified by:
nextin interfacePlayListProvider- Returns:
- the
PlayList
-
hasNext
public boolean hasNext()Description copied from interface:PlayListProviderReturns true if aPlayListis available viaPlayListProvider.next().- Specified by:
hasNextin interfacePlayListProvider- Returns:
- true if a
PlayListis available, false otherwise
-
toString
-