枚举常量和说明 |
---|
AUDIO_GAME |
EAT |
GAMEPK |
ROULETTE |
VOTE |
限定符和类型 | 方法和说明 |
---|---|
static LiveGame |
getGameForName(java.lang.String name) |
static LiveGame |
getGameForType(int type) |
java.lang.String |
getName() |
int |
getType() |
java.lang.String |
toString() |
static LiveGame |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static LiveGame[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LiveGame ROULETTE
public static final LiveGame EAT
public static final LiveGame GAMEPK
public static final LiveGame VOTE
public static final LiveGame AUDIO_GAME
public static LiveGame[] values()
for (LiveGame c : LiveGame.values()) System.out.println(c);
public static LiveGame valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public java.lang.String getName()
public int getType()
public java.lang.String toString()
toString
在类中 java.lang.Enum<LiveGame>
public static LiveGame getGameForName(java.lang.String name)
public static LiveGame getGameForType(int type)