public enum AlbumType extends Enum<AlbumType>
| Enum Constant and Description |
|---|
ALBUM |
COMPILATION |
SINGLE |
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
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 SINGLE
public static final AlbumType COMPILATION
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 © 2015. All rights reserved.