|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Playlist
A Playlist is a list of tracks, which may be manually or magically managed.
The basic interface allows the tracks indices to be read, but doesn't
care how they are determined. As well as the obvious Playlists, each Player
will probably have a Playlist listing the tracks that are queued.
Method Summary | |
---|---|
java.lang.String |
getName()
Return the name of the Playlist |
int |
getRevision()
Get the revision number of the Playlist. |
java.util.List<Track> |
getTracks()
Get the list of tracks in this Playlist |
int |
getUniqueID()
Get a unique ID for this playlist which should never change. |
void |
setName(java.lang.String name)
Set the name of the Playlist, as returned by getName() (optional operation) |
int |
size()
Get the number of tracks in this Paylist |
Playlist |
sort(java.lang.String sort,
java.lang.String filter)
Get a new Playlist based on the current one, but sorted and filtered as specified. |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
getName()
(optional operation)
int getRevision()
int getUniqueID()
java.util.List<Track> getTracks()
Playlist sort(java.lang.String sort, java.lang.String filter)
sort
- the field to sort by, eg "Title", "Artist", or null for no sortingfilter
- the text to filter on, or null for no filteringint size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |