java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.AlbumSimplified
All Implemented Interfaces:
Serializable, IModelObject, ISearchModelObject

public class AlbumSimplified extends AbstractModelObject implements ISearchModelObject
Retrieve information about simplified Album objects by building instances from this class.
See Also:
  • Method Details

    • getAlbumGroup

      public AlbumGroup getAlbumGroup()
      Get the Spotify Album Group of the album.
      Returns:
      The album group date of the album.
    • getAlbumType

      public AlbumType getAlbumType()
      Get the type of the album.
      Returns:
      The AlbumType.
    • getArtists

      public ArtistSimplified[] getArtists()
      Get the artists of the album.
      Returns:
      An array of ArtistSimplified objects.
    • getAvailableMarkets

      public com.neovisionaries.i18n.CountryCode[] getAvailableMarkets()
      Get the country codes of all countries, in which the album is available.
      Returns:
      An array of ISO 3166-1 alpha-2 country codes.
    • getExternalUrls

      public ExternalUrl getExternalUrls()
      Get the external URLs of the album.
      Example: Spotify-URL
      Returns:
      An ExternalUrl object.
    • getHref

      public String getHref()
      Get the full Spotify Web API endpoint URL of the album.
      Returns:
      A Spotify Web API endpoint URL.
    • getId

      public String getId()
      Get the Spotify ID of the album.
      Returns:
      A Spotify album ID.
    • getImages

      public Image[] getImages()
      Get the album cover art of the album in different sizes.
      Returns:
      An array of Image objects.
    • getName

      public String getName()
      Get the name of the album.
      Returns:
      Album name.
    • getReleaseDate

      public String getReleaseDate()
      Get the release date of the album with the highest precision available.
      Returns:
      The release date of the album.
    • getReleaseDatePrecision

      public ReleaseDatePrecision getReleaseDatePrecision()
      Get the precision of the albums release date. This is needed when the exact release day of an album is not known.
      Returns:
      The precision of the albums release date.
    • getRestrictions

      public Restrictions getRestrictions()
      Get the Restrictions of the album.
      Returns:
      An object of Restrictions .
    • getType

      public ModelObjectType getType()
      Get the model object type. In this case "album".
      Returns:
      A ModelObjectType.
    • getUri

      public String getUri()
      Get the Spotify URI of the album.
      Returns:
      Spotify album 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 AlbumSimplified.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