|
||||||||||
| 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.Genre
public class Genre
This class represents a genre, with a name, and a set of artist of this genre.
| Constructor Summary | |
|---|---|
Genre(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addArtist(Artist a)
Adds an artist to this genre. |
boolean |
equals(java.lang.Object o)
|
Artist |
getArtist(java.lang.String a)
Returns an Artist for a given artist name. |
java.util.Map<java.lang.String,Artist> |
getArtists()
Returns artists of this genre. |
java.util.List<AudioFile> |
getAudioFiles()
Gets the audio files. |
java.util.List<AudioObject> |
getAudioObjects()
Returns all songs of this genre (all songs of all artists). |
java.lang.String |
getName()
Returns the name of this genre. |
int |
hashCode()
|
void |
removeArtist(Artist a)
Removes an artist from this genre. |
java.lang.String |
toString()
String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Genre(java.lang.String name)
name - the name| Method Detail |
|---|
public void addArtist(Artist a)
a - the apublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic Artist getArtist(java.lang.String a)
a - the a
public java.util.Map<java.lang.String,Artist> getArtists()
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 removeArtist(Artist a)
a - the apublic 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 | |||||||||