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