Package com.tagtraum.tunes
Enum PlayerState
- java.lang.Object
-
- java.lang.Enum<PlayerState>
-
- com.tagtraum.tunes.PlayerState
-
- All Implemented Interfaces:
Serializable
,Comparable<PlayerState>
public enum PlayerState extends Enum<PlayerState>
PlayerState.- Author:
- Hendrik Schreiber
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAST_FORWARDING
PAUSED
PLAYING
REWINDING
STOPPED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlayerState
valueOf(String name)
Returns the enum constant of this type with the specified name.static PlayerState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOPPED
public static final PlayerState STOPPED
-
PLAYING
public static final PlayerState PLAYING
-
PAUSED
public static final PlayerState PAUSED
-
FAST_FORWARDING
public static final PlayerState FAST_FORWARDING
-
REWINDING
public static final PlayerState REWINDING
-
-
Method Detail
-
values
public static PlayerState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PlayerState c : PlayerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayerState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-