Class Album
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Album
- All Implemented Interfaces:
Serializable
,IModelObject
Retrieve information about
Album objects by building instances from this class.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for buildingAlbum
instances.static final class
JsonUtil class for buildingAlbum
instances.Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder for building an instance of a model object.boolean
Get the type of the album.Get the artists of the album.com.neovisionaries.i18n.CountryCode[]
Get the country codes of all countries, in which the album is available.Get all copyright texts of the album.Get the external IDs of the album.Get the external URLs of the album.String[]
Get a list of all genres of the album.getHref()
Get the full Spotify Web API endpoint URL of the album.getId()
Get the Spotify ID of the album.Image[]
Get the album cover art of the album in different sizes.getLabel()
Get the label for the album.getName()
Get the name of the album.Get the popularity of the album in a range between 0 and 100.Get the release date of the album with the highest precision available.Get the precision of the albums release date.Get a page of tracks of the album.getType()
Get the model object type.getUri()
Get the Spotify URI of the album.int
hashCode()
toString()
Returns a String representation of this model object in the style:
-
Method Details
-
getAlbumType
Get the type of the album.- Returns:
- The
AlbumType
.
-
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.
-
getCopyrights
Get all copyright texts of the album.- Returns:
- An array of
Copyright
objects.
-
getExternalIds
Get the external IDs of the album.
Example: upc -> "Universal Product Code".- Returns:
- An array of
ExternalId
objects.
-
getExternalUrls
Get the external URLs of the album.
Example: Spotify-URL- Returns:
- An
ExternalUrl
object.
-
getGenres
Get a list of all genres of the album.
A great amount of albums may contain no information about their genres.- Returns:
- An array of all genres of an album.
-
getHref
Get the full Spotify Web API endpoint URL of the album.- Returns:
- A Spotify Web API endpoint URL.
-
getId
Get the Spotify ID of the album.- Returns:
- A Spotify album ID.
-
getImages
Get the album cover art of the album in different sizes.- Returns:
- An array of
Image
objects.
-
getLabel
Get the label for the album.- Returns:
- The label for the album.
-
getName
Get the name of the album.- Returns:
- Album name.
-
getPopularity
Get the popularity of the album in a range between 0 and 100. (higher = more popular)
The popularity of the album is based on the popularity of its individual tracks.- Returns:
- The popularity of the album.
-
getReleaseDate
Get the release date of the album with the highest precision available.- Returns:
- The release date of the album.
-
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.
-
getTracks
Get a page of tracks of the album.- Returns:
- A
Paging
object containingTrackSimplified
objects.
-
getType
Get the model object type. In this case "album".- Returns:
- A
ModelObjectType
.
-
getUri
Get the Spotify URI of the album.- Returns:
- Spotify album URI.
-
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 classAbstractModelObject
-
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.- Returns:
- A builder object.
-
equals
-
hashCode
public int hashCode()
-