public enum DevCardType extends java.lang.Enum<DevCardType>
Enum Constant and Description |
---|
MONOPOLY |
MONUMENT |
ROAD_BUILD |
SOLDIER |
YEAR_OF_PLENTY |
Modifier and Type | Method and Description |
---|---|
static DevCardType |
fromInt(int i) |
static DevCardType |
fromString(java.lang.String s) |
static java.lang.String |
toString(DevCardType type) |
static DevCardType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DevCardType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DevCardType SOLDIER
public static final DevCardType YEAR_OF_PLENTY
public static final DevCardType MONOPOLY
public static final DevCardType ROAD_BUILD
public static final DevCardType MONUMENT
public static DevCardType[] values()
for (DevCardType c : DevCardType.values()) System.out.println(c);
public static DevCardType 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 DevCardType fromInt(int i)
public static java.lang.String toString(DevCardType type)
public static DevCardType fromString(java.lang.String s)