|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.neoworks.jukex.tracksource.TrackSourcePipelineElementSkeleton | +--com.neoworks.jukex.sqlimpl.JukeXPlaylist
Implementation of a Playlist
Field Summary |
Fields inherited from class com.neoworks.jukex.tracksource.TrackSourcePipelineElementSkeleton |
name |
Constructor Summary | |
JukeXPlaylist()
Default constructor |
|
JukeXPlaylist(java.lang.String name,
long id)
Creates a new instance of JukeXPlaylist |
|
JukeXPlaylist(TrackSourcePipeline tsp)
Public constructor |
Method Summary | |
void |
add(int index,
java.lang.Object element)
Add a Track to the Playlist at a specific position |
boolean |
add(java.lang.Object element)
Add a Track to the Playlist |
boolean |
addAll(java.util.Collection c)
Add a Collection of Tracks to the Playlist |
boolean |
addAll(int index,
java.util.Collection c)
Add a Collection of Tracks to the Playlist at a specific position |
void |
clear()
Clear the list |
java.lang.Object |
clone()
Must implement cloning |
boolean |
contains(java.lang.Object element)
Check whether the Playlist contains a specific object |
boolean |
containsAll(java.util.Collection c)
Check whether the List contains all of the specific objects in a Collection |
boolean |
equals(java.lang.Object o)
Equality operator |
java.lang.Object |
get(int index)
Get the object at a specific index from the List |
java.lang.String |
getDescription()
Return a String describing what, in general terms, this TrackSource does |
protected long |
getId()
Get the database id for this playlist |
Track |
getNextTrack()
Get the next track from the head of the list |
java.util.Map |
getState()
Get the state of this PipelineElement as a Map of Objects |
java.lang.String |
getSummary()
Return a String summarising the configuration of the task the source is performing |
Track |
getTrack(int index)
Get a track by index |
int |
indexOf(java.lang.Object o)
Return the index of an object in the List or -1 if it does not appear in the List |
boolean |
isEmpty()
Check whether the List contains any elements |
java.util.Iterator |
iterator()
Get an Iterator on the List |
int |
lastIndexOf(java.lang.Object o)
Return the index of the last occurence of an object in the List or -1 if it does not appear in the List |
java.util.ListIterator |
listIterator()
Get a listIterator on the List |
java.util.ListIterator |
listIterator(int index)
Get a listIterator on the List at a particular position |
java.util.List |
peekTracks(int count)
Peek at the upcoming tracks |
java.lang.Object |
remove(int index)
Remove the Object at index from the List |
boolean |
remove(java.lang.Object o)
Remove an Object from the List |
boolean |
removeAll(java.util.Collection c)
Remove all of the Objects in a Collection from the List |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in the List that are contained in a Collection |
java.lang.Object |
set(int index,
java.lang.Object element)
Set the contents of a position in the List |
boolean |
setState(java.util.Map state)
Set the state of this PipelineElement from a Map of Objects |
int |
size()
Get the size of the list |
java.util.List |
subList(int fromIndex,
int toIndex)
Get a sublist from the List |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in the List in proper sequence |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all of the elements in the List in proper sequence; the runtime type of the returned array is that of the specified array. |
java.lang.String |
toString()
Get a pretty String representation of the list |
Methods inherited from class com.neoworks.jukex.tracksource.TrackSourcePipelineElementSkeleton |
delegateGetNextTrack, delegatePeekTracks, disable, enable, getName, getNextTrackSource, getOwner, isEnabled, removeTrack, setName, setNextTrackSource, setOwner, storeState |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.neoworks.jukex.Playlist |
getName |
Methods inherited from interface java.util.List |
hashCode |
Methods inherited from interface com.neoworks.jukex.tracksource.TrackSourcePipelineElement |
disable, enable, getNextTrackSource, removeTrack, setName, setNextTrackSource, setOwner, storeState |
Methods inherited from interface com.neoworks.jukex.tracksource.TrackSource |
isEnabled |
Constructor Detail |
public JukeXPlaylist()
public JukeXPlaylist(java.lang.String name, long id)
name
- The Playlist nameid
- The database id of the Playlistpublic JukeXPlaylist(TrackSourcePipeline tsp)
tsp
- The Pipeline whose bitch this Element isMethod Detail |
protected long getId()
public Track getNextTrack()
getNextTrack
in interface Playlist
public Track getTrack(int index)
getTrack
in interface Playlist
index
- The track index to get
public java.util.List peekTracks(int count)
peekTracks
in interface TrackSourcePipelineElement
count
- The number of tracks to peek ahead at
public boolean setState(java.util.Map state)
setState
in interface TrackSourcePipelineElement
setState
in class TrackSourcePipelineElementSkeleton
state
- Map representing the state of this Playlist
public java.util.Map getState()
getState
in interface TrackSourcePipelineElement
getState
in class TrackSourcePipelineElementSkeleton
public void add(int index, java.lang.Object element)
add
in interface java.util.List
index
- The position to insert atelement
- The Track to add
java.lang.ClassCastException
- If the object is not a Trackpublic boolean add(java.lang.Object element)
add
in interface java.util.List
element
- The Track to add
java.lang.ClassCastException
- If the object is not a Trackpublic boolean addAll(java.util.Collection c)
addAll
in interface java.util.List
c
- The Collection of Track objects
java.lang.ClassCastException
- If any of the objects are not Trackspublic boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
index
- The position to insert atc
- The Collection of Track objects
java.lang.ClassCastException
- If any of the objects are not Trackspublic void clear()
clear
in interface java.util.List
public int size()
size
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.List
c
- The Collection of objects to check for
public boolean contains(java.lang.Object element)
contains
in interface java.util.List
element
- The Object to check for
public boolean equals(java.lang.Object o)
equals
in interface java.util.List
equals
in class java.lang.Object
o
- The object to compare
public java.lang.Object remove(int index)
remove
in interface java.util.List
index
- The index of the comdemned object
public boolean remove(java.lang.Object o)
remove
in interface java.util.List
o
- The Object to remove
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.List
c
- The Collection of condemned Objects
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.List
c
- The Collection of objects to retain
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
index
- The position of the Iterator in the List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.util.List
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
o
- The object to get the index of
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
o
- The object to get the index of
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
index
- The position in the List to fillelement
- The element to insert
public java.lang.Object get(int index)
get
in interface java.util.List
index
- The index of the required object
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
fromIndex
- The position of the beginning of the sublisttoIndex
- The position of the end of the sublistpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
TrackSource
clone
in interface TrackSource
clone
in class TrackSourcePipelineElementSkeleton
public java.lang.String getSummary()
getSummary
in interface TrackSource
public java.lang.String getDescription()
getDescription
in interface TrackSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |