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

Retrieve information about Artist objects by building instances from this class.
See Also:
  • Method Details

    • getExternalUrls

      public ExternalUrl getExternalUrls()
      Get the external URLs of the artist.
      Example: Spotify-URL
      Specified by:
      getExternalUrls in interface IArtist
      Returns:
      An ExternalUrl object.
    • getFollowers

      public Followers getFollowers()
      Get information about the followers of the artist.
      Returns:
      A Followers object.
    • getGenres

      public String[] 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

      public String getHref()
      Get the full Spotify Web API endpoint URL of the artist.
      Specified by:
      getHref in interface IArtist
      Returns:
      A Spotify Web API endpoint URL.
    • getId

      public String getId()
      Get the Spotify ID of the artist.
      Specified by:
      getId in interface IArtist
      Returns:
      A Spotify artist ID.
    • getImages

      public Image[] getImages()
      Get all images of the artist (like header image) in different sizes.
      Returns:
      An array of Image objects.
    • getName

      public String getName()
      Get the name of the artist.
      Specified by:
      getName in interface IArtist
      Returns:
      Artist name.
    • getPopularity

      public Integer 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

      public ModelObjectType getType()
      Get the model object type. In this case "artist".
      Specified by:
      getType in interface IArtist
      Returns:
      A ModelObjectType.
    • getUri

      public String getUri()
      Get the Spotify URI of the artist.
      Specified by:
      getUri in interface IArtist
      Returns:
      Spotify artist URI.
    • toString

      public String toString()
      Description copied from class: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • builder

      public Artist.Builder builder()
      Description copied from interface: IModelObject
      Create 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:
      builder in interface IModelObject
      Returns:
      A builder object.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object