public enum ModelObjectType extends Enum<ModelObjectType>
| Enum Constant and Description |
|---|
ALBUM |
ARTIST |
AUDIO_FEATURES |
GENRE |
PLAYLIST |
TRACK |
USER |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Get the model object type as a string.
|
static ModelObjectType |
keyOf(String type) |
static ModelObjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelObjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelObjectType ALBUM
public static final ModelObjectType ARTIST
public static final ModelObjectType AUDIO_FEATURES
public static final ModelObjectType GENRE
public static final ModelObjectType PLAYLIST
public static final ModelObjectType TRACK
public static final ModelObjectType USER
public final String type
public static ModelObjectType[] values()
for (ModelObjectType c : ModelObjectType.values()) System.out.println(c);
public static ModelObjectType 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 static ModelObjectType keyOf(String type)
public String getType()
Copyright © 2020. All rights reserved.