|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.atunes.kernel.modules.repository.model.Artist
public class Artist
This class represents an artist, with a name, and a list of albums.
| Constructor Summary | |
|---|---|
Artist(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAlbum(Album album)
Adds an album to this artist. |
int |
compareTo(Artist o)
Comparator. |
boolean |
equals(java.lang.Object o)
|
Album |
getAlbum(java.lang.String albumName)
Return an Album for a given album name. |
java.util.Map<java.lang.String,Album> |
getAlbums()
Return albums of this artist. |
java.util.List<AudioFile> |
getAudioFiles()
Gets the audio files. |
java.util.List<AudioObject> |
getAudioObjects()
Returns a list of songs of this artist (all songs of all albums). |
java.lang.String |
getName()
Returns the name of this artist. |
int |
hashCode()
|
void |
removeAlbum(Album alb)
Removes an album from this artist. |
java.lang.String |
toString()
String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Artist(java.lang.String name)
name - the name| Method Detail |
|---|
public void addAlbum(Album album)
album - the albumpublic int compareTo(Artist o)
compareTo in interface java.lang.Comparable<Artist>o - the o
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic Album getAlbum(java.lang.String albumName)
albumName - the album name
public java.util.Map<java.lang.String,Album> getAlbums()
public java.util.List<AudioFile> getAudioFiles()
public java.util.List<AudioObject> getAudioObjects()
getAudioObjects in interface TreeObjectpublic java.lang.String getName()
public int hashCode()
hashCode in class java.lang.Objectpublic void removeAlbum(Album alb)
alb - the albpublic 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 | |||||||||