|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.core.LinkableAbs
org.musicontroller.core.Playlist
public class Playlist
Constructor Summary | |
---|---|
Playlist()
|
Method Summary | |
---|---|
void |
addSong(Song song,
int index)
Adds a song to the playlist, with the indicated index number. |
void |
addSongIfNew(Song song,
int index)
Adds a Song to the Playlist at a certain index, if the Playlist does not already contain that Song. |
static Playlist |
createInstance(Song song)
Constructs a playlist containing the song passed in the parameter. |
boolean |
equals(java.lang.Object o)
Explicitly specify that two playlist are equal only if they have the same id. |
java.lang.String |
getBandname()
Returns the name of the Band performing on this Playlist. |
java.lang.String |
getComments()
|
java.util.Date |
getFilterBegin()
|
java.util.Date |
getFilterEnd()
|
java.lang.String |
getFormattedReleasedate()
|
Link |
getLink()
|
Playlist |
getPrevious()
|
java.util.Date |
getReleasedate()
|
int |
getRownumberOf(Song song)
Returns the rownumber of the given Song in this Playlist. |
Song |
getSongAtIndex(int i)
Returns the song at song index i in the playlist, or null if there is no song at song index i. |
java.util.Set<Contract_PS> |
getSongs()
|
java.lang.String |
getType()
|
int |
hashCode()
|
void |
setComments(java.lang.String comments)
|
void |
setFilterBegin(java.util.Date filter)
You can set this value to indicate that this playlist's Songs' Events should be filtered to a certain period. |
void |
setFilterEnd(java.util.Date filter)
|
void |
setLink(Link link)
|
void |
setPrevious(Playlist playlist)
You can set this property to a non-null value, to indicate the previous state of this playlist. |
void |
setReleasedate(java.util.Date releasedate)
|
void |
setSongs(java.util.Set<Contract_PS> songs)
|
java.lang.String |
toString()
|
Methods inherited from class org.musicontroller.core.LinkableAbs |
---|
getChanged, getId, getInserted, getName, normalizeName, setChanged, setId, setInserted, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Playlist()
Method Detail |
---|
public void addSong(Song song, int index)
song
- The song to add. Nothing is added if this is NULL.index
- The requested index number.public java.lang.String getComments()
public void setComments(java.lang.String comments)
public Link getLink()
public void setLink(Link link)
public java.util.Date getReleasedate()
public java.lang.String getFormattedReleasedate()
public void setReleasedate(java.util.Date releasedate)
public java.util.Set<Contract_PS> getSongs()
public void setSongs(java.util.Set<Contract_PS> songs)
public java.util.Date getFilterBegin()
public void setFilterBegin(java.util.Date filter)
filter
- public java.util.Date getFilterEnd()
public void setFilterEnd(java.util.Date filter)
public void setPrevious(Playlist playlist)
playlist
- Another Playlistpublic Playlist getPrevious()
public int getRownumberOf(Song song)
song
- The Song
public Song getSongAtIndex(int i)
i
- The requested song index.
public static Playlist createInstance(Song song)
song
- The song to be entered in the playlist.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getType()
public java.lang.String getBandname()
public java.lang.String toString()
toString
in class java.lang.Object
public void addSongIfNew(Song song, int index)
song
- The Song.index
- The index-position for the new Song.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |