Enum Constant and Description |
---|
BOARDGAME |
BOARDGAME_EXPANSION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey() |
static ThingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static ThingType |
withKey(java.lang.String key) |
public static final ThingType BOARDGAME
public static final ThingType BOARDGAME_EXPANSION
public static ThingType[] values()
for (ThingType c : ThingType.values()) System.out.println(c);
public static ThingType 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 ThingType withKey(java.lang.String key)
public java.lang.String getKey()