public enum PlayerState extends java.lang.Enum<PlayerState>
Enum Constant and Description |
---|
NO_FILE_LOADED
No file is loaded.
|
PLAYING
The file is playing
|
STOPPED
Audio play back is stopped.
|
Modifier and Type | Method and Description |
---|---|
static PlayerState |
valueOf(java.lang.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.
|
public static final PlayerState NO_FILE_LOADED
public static final PlayerState PLAYING
public static final PlayerState STOPPED
public static PlayerState[] values()
for (PlayerState c : PlayerState.values()) System.out.println(c);
public static PlayerState 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 namejava.lang.NullPointerException
- if the argument is null