public enum GameType extends Enum<GameType>
Enum Constant and Description |
---|
App
A Steam application.
|
GameMod
A game modification.
|
P2P
A peer-to-peer file.
|
Shortcut
A shortcut to a program.
|
Modifier and Type | Field and Description |
---|---|
private int |
code |
private static HashMap<Integer,GameType> |
values |
Modifier and Type | Method and Description |
---|---|
static GameType |
fromCode(int code) |
int |
v() |
static GameType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameType App
public static final GameType GameMod
public static final GameType Shortcut
public static final GameType P2P
public static GameType[] values()
for (GameType c : GameType.values()) System.out.println(c);
public static GameType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int v()
public static GameType fromCode(int code)
Copyright © 2012. All Rights Reserved.