public static enum AudioPlayer.Command extends java.lang.Enum<AudioPlayer.Command>
Enum Constant and Description |
---|
PAUSE
Audio pause
|
PLAY
Audio play
|
Modifier and Type | Method and Description |
---|---|
static AudioPlayer.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AudioPlayer.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AudioPlayer.Command PLAY
public static final AudioPlayer.Command PAUSE
public static AudioPlayer.Command[] values()
for (AudioPlayer.Command c : AudioPlayer.Command.values()) System.out.println(c);
public static AudioPlayer.Command 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