|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.musicontroller.songselection.LastPlayedContainer
public class LastPlayedContainer
The LastPlayedContainer keeps a List of song-IDs that have been played and/or skipped in recent history. These song-ID's are used by the SongSelector-interface to match to-be-played songs with the ones that have been previously played.
| Constructor Summary | |
|---|---|
LastPlayedContainer()
|
|
| Method Summary | |
|---|---|
void |
addToLastPlayed(long songid)
Add the played song to a list of recently played songs. |
void |
addToLastPlayed(long songid,
boolean entirely)
Add the played or skipped song to a list of recently played songs. |
LastPlayedContainer |
clone()
|
java.util.Iterator<LastPlayedEntry> |
getIterator()
|
int |
getSize()
|
void |
markLastSongAsSkipped()
Marks the last played Song in the list as 'skipped'. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LastPlayedContainer()
| Method Detail |
|---|
public void addToLastPlayed(long songid)
songid - The id of the Song to add to the list.
public void addToLastPlayed(long songid,
boolean entirely)
songid - The id of the Song to add to the list.entirely - whether or not the Song was played entirely..addToLastPlayed(long)public int getSize()
public java.util.Iterator<LastPlayedEntry> getIterator()
public LastPlayedContainer clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void markLastSongAsSkipped()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||