Package se.michaelthelin.spotify.enums
Enum Class Action
- All Implemented Interfaces:
- Serializable,- Comparable<Action>,- java.lang.constant.Constable
An enumeration of all possible 
Action types.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionRepresents interrupting playback action.Represents pausing action.Represents resuming action.Represents seeking action.Represents skipping to next track action.Represents skipping to previous track action.Represents toggling repeat context action.Represents toggling repeat track action.Represents toggling shuffle action.Represents transferring playback action.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Get theActionkey as a string.static ActionGet an Action by its key.static ActionReturns the enum constant of this class with the specified name.static Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
INTERRUPTING_PLAYBACKRepresents interrupting playback action.
- 
PAUSINGRepresents pausing action.
- 
RESUMINGRepresents resuming action.
- 
SEEKINGRepresents seeking action.
- 
SKIPPING_NEXTRepresents skipping to next track action.
- 
SKIPPING_PREVRepresents skipping to previous track action.
- 
TOGGLING_REPEAT_CONTEXTRepresents toggling repeat context action.
- 
TOGGLING_SHUFFLERepresents toggling shuffle action.
- 
TOGGLING_REPEAT_TRACKRepresents toggling repeat track action.
- 
TRANSFERRING_PLAYBACKRepresents transferring playback action.
 
- 
- 
Field Details- 
keyThe action key string.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
keyOfGet an Action by its key.- Parameters:
- key- The action key.
- Returns:
- The corresponding Action or null if not found.
 
- 
getKeyGet theActionkey as a string.- Returns:
- Actionkey as string.
 
 
-