com.ldodds.musicbrainz
Class Artist
java.lang.Object
|
+--com.ldodds.musicbrainz.Artist
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class Artist
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
Note: this class has a natural ordering that is inconsistent with equals.
- Author:
- ldodds
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Artist
public Artist()
getArtist
public static com.ldodds.musicbrainz.Artist getArtist(java.lang.String id)
getAlbums
public java.util.List getAlbums()
- Returns:
- a List of albums. List may be empty
getId
public java.lang.String getId()
- Returns:
- the MusicBrainz Identifier for this artist
getName
public java.lang.String getName()
- Returns:
- the name of the artist
getSortName
public java.lang.String getSortName()
- Returns:
- the sort name of the artist
setAlbums
public void setAlbums(java.util.List list)
- Parameters:
list
- sets the list of albums created by this artist
setId
public void setId(java.lang.String string)
- Parameters:
string
- sets the MusicBrainz identifier for this artist
setName
public void setName(java.lang.String string)
- Parameters:
string
- sets the name of the artist
setSortName
public void setSortName(java.lang.String string)
- Parameters:
string
- sets the sort name of the artist
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo
in interface java.lang.Comparable
- See Also:
Comparable.compareTo(java.lang.Object)