Class Artist
java.lang.Object
com.wrapper.spotify.model_objects.AbstractModelObject
com.wrapper.spotify.model_objects.specification.Artist
- All Implemented Interfaces:
IModelObject,IArtistTrackModelObject,ISearchModelObject
public class Artist extends AbstractModelObject implements IArtistTrackModelObject, ISearchModelObject
Retrieve information about
Artist objects by building instances from this class.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArtist.BuilderBuilder class for buildingArtistinstances.static classArtist.JsonUtilJsonUtil class for buildingArtistinstances.Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T> -
Method Summary
Modifier and Type Method Description Artist.Builderbuilder()Create a builder for building an instance of a model object.ExternalUrlgetExternalUrls()Get the external URLs of the artist.FollowersgetFollowers()Get information about the followers of the artist.String[]getGenres()Get a list of all genres of the artist.StringgetHref()Get the full Spotify Web API endpoint URL of the artist.StringgetId()Get the Spotify ID of the artist.Image[]getImages()Get all images of the artist (like header image) in different sizes.StringgetName()Get the name of the artist.IntegergetPopularity()Get the popularity of the artist in a range between 0 and 100.ModelObjectTypegetType()Get the model object type.StringgetUri()Get the Spotify URI of the artist.
-
Method Details
-
getExternalUrls
Get the external URLs of the artist.
Example: Spotify-URL- Returns:
- An
ExternalUrlobject.
-
getFollowers
Get information about the followers of the artist.
Example: Follower count.- Returns:
- A
Followersobject.
-
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
Get the full Spotify Web API endpoint URL of the artist.- Returns:
- A Spotify Web API endpoint URL.
-
getId
Get the Spotify ID of the artist.- Returns:
- A Spotify artist ID.
-
getImages
Get all images of the artist (like header image) in different sizes.- Returns:
- An array of
Imageobjects.
-
getName
Get the name of the artist.- Returns:
- Artist name.
-
getPopularity
Get the popularity of the artist in a range between 0 and 100. (higher = more popular)
The popularity of the artist is based on the popularity of its tracks.- Returns:
- The popularity of the artist.
-
getType
Get the model object type. In this case "artist".- Returns:
- A
ModelObjectType.
-
getUri
Get the Spotify URI of the artist.- Returns:
- Spotify artist URI.
-
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.
-