Package se.michaelthelin.spotify.enums
Enum Class AlbumGroup
- All Implemented Interfaces:
Serializable
,Comparable<AlbumGroup>
,java.lang.constant.Constable
Compare to [AlbumType] this field represents relationship between the artist and the album.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlbum group type.Appears on group type.Compilation group type.Single group type. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()
Get the album group as a string.static AlbumGroup
Get an AlbumGroup by its type string.static AlbumGroup
Returns the enum constant of this class with the specified name.static AlbumGroup[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALBUM
Album group type. -
APPEARS_ON
Appears on group type. -
COMPILATION
Compilation group type. -
SINGLE
Single group type.
-
-
Field Details
-
group
The album group string.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
keyOf
Get an AlbumGroup by its type string.- Parameters:
type
- The group type string.- Returns:
- The corresponding AlbumGroup or null if not found.
-
getGroup
Get the album group as a string.- Returns:
- Album group as string.
-