Serializable, Comparable<AlbumType>public enum AlbumType extends Enum<AlbumType>
| Enum Constant | Description |
|---|---|
ALBUM |
|
APPEARS_ON |
|
COMPILATION |
|
SINGLE |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getType() |
Get the album type as a string.
|
static AlbumType |
keyOf(String type) |
|
static AlbumType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AlbumType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlbumType ALBUM
public static final AlbumType APPEARS_ON
public static final AlbumType COMPILATION
public static final AlbumType SINGLE
public final String type
public static AlbumType[] values()
for (AlbumType c : AlbumType.values()) System.out.println(c);
public static AlbumType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getType()
Copyright © 2019. All rights reserved.