Class Song
java.lang.Object
de.pottgames.tuningfork.jukebox.song.Song
An immutable data class containing a
SongSource and a SongSettings object meant to be added to a PlayList that can be played via
JukeBox.-
Constructor Summary
ConstructorsConstructorDescriptionSong(SongSource source) Creates a new Song with default settings.Song(SongSource source, SongSettings settings) Creates a new Song with the given settings.Song(SongSource source, SongSettings settings, SongMeta metaData) Creates a new Song with the given settings and meta-data. -
Method Summary
Modifier and TypeMethodDescriptiongetMeta()Returns theSongMeta.Returns theSongSettings.Returns theSongSource.toString()
-
Constructor Details
-
Song
Creates a new Song with default settings. SeeSongSettings.DEFAULTfor details.- Parameters:
source- the song source
-
Song
Creates a new Song with the given settings.- Parameters:
source- the song sourcesettings- if null, default settings will be used, seeSongSettings.DEFAULTfor details
-
Song
Creates a new Song with the given settings and meta-data.- Parameters:
source- the song sourcesettings- if null, default settings will be used, seeSongSettings.DEFAULTfor detailsmetaData- may be null
-
-
Method Details
-
getSource
-
getSettings
-
getMeta
-
toString
-