Class ThemePlayListProvider
java.lang.Object
de.pottgames.tuningfork.jukebox.playlist.ThemePlayListProvider
- All Implemented Interfaces:
PlayListProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTheme()Returns the theme.booleanhasNext()Returns true if aPlayListis available viaPlayListProvider.next().next()Returns the next PlayList.remove(int theme) Removes aPlayListand the theme from the internal map.setTheme(int theme) Sets the theme.toString()
-
Field Details
-
theme
protected int theme
-
-
Constructor Details
-
ThemePlayListProvider
public ThemePlayListProvider()
-
-
Method Details
-
setTheme
Sets the theme.- Parameters:
theme- the theme identifier- Returns:
- the ThemePlayListProvider for chaining
-
getTheme
public int getTheme()Returns the theme.- Returns:
- the theme
-
add
-
remove
Removes aPlayListand the theme from the internal map.- Parameters:
theme- a custom id you can choose freely- Returns:
- the ThemePlayListProvider 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
-