|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qtunes.db.spi.simple.ManualPlaylistImpl
public class ManualPlaylistImpl
A Simple Playlist that has a manually managed list of tracks
Method Summary | |
---|---|
void |
add(Track track)
Add the specified Track to the Playlist. |
void |
add(Track track,
int index)
Add the specified Track to the Playlist. |
void |
addAll(Playlist playlist)
Add the tracks specified in this Playlist |
void |
addAll(Playlist playlist,
int index)
Add the specified tracks to this Playlist at the specified point |
void |
clear()
Clear the Playlist |
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 |
mergeAll(Playlist playlist)
Add the specified tracks to this Playlist, but only if they're not duplicates. |
void |
mergeAll(Playlist playlist,
int index)
Add the specified tracks to this Playlist at the specified point, but only if they're not duplicates |
Track |
remove(int index)
Remove the Track at the specified position in the Playlist |
void |
removeAll(java.util.BitSet bitset)
Remove tracks at the specified indices from this Playlist |
void |
removeAll(Playlist playlist)
Remove all tracks from the specified Playlist from this Playlist |
boolean |
removeTrack(Track track)
Remove all occurances of the specified Track from the Playlist |
void |
setName(java.lang.String name)
Set the name of the Playlist, as returned by Playlist.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setName(java.lang.String name)
Playlist
Playlist.getName()
(optional operation)
setName
in interface Playlist
public java.lang.String getName()
Playlist
getName
in interface Playlist
public int getUniqueID()
Playlist
getUniqueID
in interface Playlist
public int getRevision()
Playlist
getRevision
in interface Playlist
public void addAll(Playlist playlist)
addAll
in interface ManualPlaylist
playlist
- the tracks to addpublic void mergeAll(Playlist playlist)
mergeAll
in interface ManualPlaylist
playlist
- the tracks to addpublic void addAll(Playlist playlist, int index)
addAll
in interface ManualPlaylist
playlist
- the tracks to addindex
- the insertion position in the listpublic void mergeAll(Playlist playlist, int index)
mergeAll
in interface ManualPlaylist
playlist
- the tracks to addindex
- the insertion position in the listpublic void add(Track track)
add
in interface ManualPlaylist
track
- the Track to addpublic void add(Track track, int index)
add
in interface ManualPlaylist
track
- the Track to addindex
- the insertion position in the listpublic void clear()
ManualPlaylist
clear
in interface ManualPlaylist
public Track remove(int index)
ManualPlaylist
remove
in interface ManualPlaylist
public boolean removeTrack(Track track)
ManualPlaylist
removeTrack
in interface ManualPlaylist
public void removeAll(Playlist playlist)
ManualPlaylist
removeAll
in interface ManualPlaylist
public void removeAll(java.util.BitSet bitset)
ManualPlaylist
removeAll
in interface ManualPlaylist
public java.util.List<Track> getTracks()
Playlist
getTracks
in interface Playlist
public java.lang.String toString()
toString
in class java.lang.Object
public Playlist sort(java.lang.String sort, java.lang.String filter)
Playlist
sort
in interface Playlist
sort
- the field to sort by, eg "Title", "Artist", or null for no sortingfilter
- the text to filter on, or null for no filteringpublic int size()
Playlist
size
in interface Playlist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |