|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--JavaTron.AudioTronSong
Represents all the song information for a song from an the AudioTron.
Field Summary | |
java.lang.String |
album
|
java.lang.String |
artist
|
java.lang.String |
genre
|
int |
index
|
java.lang.String |
source
|
java.lang.String |
sourceLocation
|
java.lang.String |
title
|
int |
total
|
Constructor Summary | |
AudioTronSong()
Default constructor for song -- assigns a negative index |
|
AudioTronSong(int index_)
Constructor that takes an index |
Method Summary | |
boolean |
checkMatch(JavaTron.AudioTronSong song)
Determine if these two songs match. |
boolean |
shouldUpdate(JavaTron.AudioTronSong s)
Determine whether this song should be updated by the song that is passed in (whether the passed in song has more info) |
java.lang.String |
toString()
Generates a ListBox friendly String |
void |
update(JavaTron.AudioTronSong song)
Copy contents of other song to this song |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String title
public java.lang.String artist
public java.lang.String album
public java.lang.String genre
public java.lang.String source
public java.lang.String sourceLocation
public int index
public int total
Constructor Detail |
public AudioTronSong()
public AudioTronSong(int index_)
index_
- the index of the song (in the play queue)Method Detail |
public void update(JavaTron.AudioTronSong song)
public boolean checkMatch(JavaTron.AudioTronSong song)
public boolean shouldUpdate(JavaTron.AudioTronSong s)
s
- the song to determine if it is newer than this song
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |