Class Artist
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Artist
- All Implemented Interfaces:
Serializable, IModelObject, IArtist, ISearchModelObject, IArtistTrackModelObject
public class Artist
extends AbstractModelObject
implements IArtistTrackModelObject, ISearchModelObject, IArtist
Retrieve information about
Artist objects by building instances from this class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for buildingArtistinstances.static final classJsonUtil class for buildingArtistinstances.Nested classes/interfaces inherited from interface IModelObject
IModelObject.IJsonUtil<T> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder for building an instance of a model object.booleanGet the external URLs of the artist.Get information about the followers of the artist.String[]Get a list of all genres of the artist.getHref()Get the full Spotify Web API endpoint URL of the artist.getId()Get the Spotify ID of the artist.Image[]Get all images of the artist (like header image) in different sizes.getName()Get the name of the artist.Get the popularity of the artist.getType()Get the model object type.getUri()Get the Spotify URI of the artist.inthashCode()toString()Returns a String representation of this model object in the style:
-
Method Details
-
getExternalUrls
Get the external URLs of the artist.
Example: Spotify-URL- Specified by:
getExternalUrlsin interfaceIArtist- Returns:
- An
ExternalUrlobject.
-
getFollowers
-
getGenres
Get a list of all genres of the artist.
A great amount of artists may contain no information about their genres.- Returns:
- An array of genre names.
-
getHref
-
getId
Get the Spotify ID of the artist.- Specified by:
getIdin interfaceIArtist- Returns:
- A Spotify artist ID.
-
getImages
-
getName
-
getPopularity
Get the popularity of the artist. The value will be between 0 and 100, with 100 being the most popular.- Returns:
- The popularity of the artist.
-
getType
Get the model object type. In this case "artist".- Specified by:
getTypein interfaceIArtist- Returns:
- A
ModelObjectType.
-
getUri
Get the Spotify URI of the artist.- Specified by:
getUriin interfaceIArtist- Returns:
- Spotify artist URI.
-
toString
Description copied from class:AbstractModelObjectReturns a String representation of this model object in the style:ModelObject(attr1=value1, attr2=value2, ...)- Specified by:
toStringin classAbstractModelObject
-
builder
Description copied from interface:IModelObjectCreate a builder for building an instance of a model object.
The type of the builder and its methods depend on its corresponding implementation.- Specified by:
builderin interfaceIModelObject- Returns:
- A builder object.
-
equals
-
hashCode
-