|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Source>
net.roarsoftware.lastfm.scrobble.Source
public enum Source
The source of the track. See http://www.last.fm/api/submissions#subs for more information.
Enum Constant Summary | |
---|---|
LAST_FM
Last.fm (any mode). |
|
NON_PERSONALIZED_BROADCAST
Non-personalised broadcast (e.g. |
|
PERSONALIZED_BROADCAST
Personalised recommendation except Last.fm (e.g. |
|
UNKNOWN
Source unknown. |
|
USER
Chosen by the user (the most common value, unless you have a reason for choosing otherwise, use this). |
Method Summary | |
---|---|
java.lang.String |
getCode()
Returns the corresponding code for this source. |
static Source |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Source[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Source USER
public static final Source NON_PERSONALIZED_BROADCAST
public static final Source PERSONALIZED_BROADCAST
public static final Source LAST_FM
public static final Source UNKNOWN
Method Detail |
---|
public static Source[] values()
for (Source c : Source.values()) System.out.println(c);
public static Source valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |