Class Album
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Album
- All Implemented Interfaces:
Serializable, IModelObject, IAlbum
Retrieve information about
Album objects by building instances from this class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for buildingAlbuminstances.static final classJsonUtil class for buildingAlbuminstances.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 type of the album.Get the artists of the album.Get all copyright texts of the album.Get the external IDs of the album.
Example: upc -> "Universal Product Code".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 associated with the album.getName()Get the name of the album.Get the release date of the album with the highest precision available.Get the precision of the albums release date.Get the total number of tracks in the album.Get a page of tracks of the album.getType()Get the model object type.getUri()Get the Spotify URI of the album.inthashCode()toString()Returns a String representation of this model object in the style:
-
Method Details
-
getAlbumType
Get the type of the album.- Specified by:
getAlbumTypein interfaceIAlbum- Returns:
- The
AlbumType.
-
getArtists
Get the artists of the album.- Specified by:
getArtistsin interfaceIAlbum- Returns:
- An array of
ArtistSimplifiedobjects.
-
getCopyrights
-
getExternalIds
Get the external IDs of the album.
Example: upc -> "Universal Product Code".- Returns:
- Known external IDs for the album.
-
getExternalUrls
Get the external URLs of the album.
Example: Spotify-URL- Specified by:
getExternalUrlsin interfaceIAlbum- Returns:
- An
ExternalUrlobject.
-
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
-
getId
Get the Spotify ID of the album.- Specified by:
getIdin interfaceIAlbum- Returns:
- A Spotify album ID.
-
getImages
-
getLabel
Get the label associated with the album.- Returns:
- The label associated with the album.
-
getName
-
getReleaseDate
Get the release date of the album with the highest precision available.- Specified by:
getReleaseDatein interfaceIAlbum- 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.- Specified by:
getReleaseDatePrecisionin interfaceIAlbum- Returns:
- The precision of the albums release date.
-
getTotalTracks
Get the total number of tracks in the album.- Returns:
- The number of tracks in the album.
-
getTracks
Get a page of tracks of the album.- Returns:
- A
Pagingobject containingTrackSimplifiedobjects.
-
getType
Get the model object type. In this case "album".- Specified by:
getTypein interfaceIAlbum- Returns:
- A
ModelObjectType.
-
getUri
Get the Spotify URI of the album.- Specified by:
getUriin interfaceIAlbum- Returns:
- Spotify album 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
-