public static enum Player.State extends java.lang.Enum<Player.State>
| Enum Constant and Description |
|---|
Closed
No file is opened for playing.
|
Paused
The player is paused.
|
Playing
The player is playing.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
mValue |
| Modifier and Type | Method and Description |
|---|---|
static Player.State |
fromInt(int value) |
int |
toInt() |
static Player.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Player.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Player.State Closed
public static final Player.State Paused
public static final Player.State Playing
public static Player.State[] values()
for (Player.State c : Player.State.values()) System.out.println(c);
public static Player.State 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 nullpublic static Player.State fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic int toInt()