Package org.localify.playlist
Class PlaylistSongPair
java.lang.Object
org.localify.playlist.PlaylistSongPair
Represents a pair of songs in a playlist, one from a local artist and one from a seed artist.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-arg constructor for JPA.PlaylistSongPair(Playlist playlist, int position, Artist localArtist, Song localSong, Artist seedArtist, Song seedSong) Constructs a new PlaylistSongPair.PlaylistSongPair(Playlist playlist, int position, Artist localArtist, Song localSong, Artist seedArtist, Song seedSong, Song localSong2, Song localSong3) Constructs a new PlaylistSongPair. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.Gets the deleted timestamp.Gets the local artist.Gets the local song.Gets the second local song.Gets the third local song.Gets the playlist.intGets the position of the song pair in the playlist.Gets the seed artist.Gets the seed song.voidSets the deleted timestamp to now.voidsetLocalArtist(Artist localArtist) Sets the local artist.voidsetLocalSong(Song localSong) Sets the local song.voidsetLocalSong2(Song localSong2) Sets the second local song.voidsetLocalSong3(Song localSong3) Sets the third local song.voidsetPlaylist(Playlist playlist) Sets the playlist.voidsetSeedArtist(Artist seedArtist) Sets the seed artist.voidsetSeedSong(Song seedSong) Sets the seed song.
-
Constructor Details
-
PlaylistSongPair
protected PlaylistSongPair()Protected no-arg constructor for JPA. -
PlaylistSongPair
public PlaylistSongPair(Playlist playlist, int position, Artist localArtist, Song localSong, Artist seedArtist, Song seedSong) Constructs a new PlaylistSongPair.- Parameters:
playlist- The playlist.position- The position of the song pair in the playlist.localArtist- The local artist.localSong- The local song.seedArtist- The seed artist.seedSong- The seed song.
-
PlaylistSongPair
public PlaylistSongPair(Playlist playlist, int position, Artist localArtist, Song localSong, Artist seedArtist, Song seedSong, Song localSong2, Song localSong3) Constructs a new PlaylistSongPair.- Parameters:
playlist- The playlist.position- The position of the song pair in the playlist.localArtist- The local artist.localSong- The local song.seedArtist- The seed artist.seedSong- The seed song.localSong2- The second local song.localSong3- The third local song.
-
-
Method Details
-
getPosition
public int getPosition()Gets the position of the song pair in the playlist.- Returns:
- The position.
-
getPlaylist
Gets the playlist.- Returns:
- The playlist.
-
setPlaylist
Sets the playlist.- Parameters:
playlist- The playlist.
-
getLocalArtist
Gets the local artist.- Returns:
- The local artist.
-
setLocalArtist
Sets the local artist.- Parameters:
localArtist- The local artist.
-
getLocalSong
Gets the local song.- Returns:
- The local song.
-
setLocalSong
Sets the local song.- Parameters:
localSong- The local song.
-
getSeedSong
Gets the seed song.- Returns:
- The seed song.
-
setSeedSong
Sets the seed song.- Parameters:
seedSong- The seed song.
-
getSeedArtist
Gets the seed artist.- Returns:
- The seed artist.
-
setSeedArtist
Sets the seed artist.- Parameters:
seedArtist- The seed artist.
-
getLocalSong2
Gets the second local song.- Returns:
- The second local song.
-
getLocalSong3
Gets the third local song.- Returns:
- The third local song.
-
setLocalSong2
Sets the second local song.- Parameters:
localSong2- The second local song.
-
setLocalSong3
Sets the third local song.- Parameters:
localSong3- The third local song.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
getDeletedAt
Gets the deleted timestamp.- Returns:
- The deleted timestamp.
-
setDeletedAt
public void setDeletedAt()Sets the deleted timestamp to now.
-