public enum CommandWord extends java.lang.Enum<CommandWord>
Enum Constant and Description |
---|
BACK |
DROP |
EAT |
GO |
HELP |
INVENTAIRE |
LOAD |
LOOK |
QUIT |
TAKE |
TEST |
UNKNOWN |
USE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static CommandWord |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandWord[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandWord GO
public static final CommandWord INVENTAIRE
public static final CommandWord QUIT
public static final CommandWord HELP
public static final CommandWord UNKNOWN
public static final CommandWord LOOK
public static final CommandWord BACK
public static final CommandWord EAT
public static final CommandWord TAKE
public static final CommandWord DROP
public static final CommandWord USE
public static final CommandWord LOAD
public static final CommandWord TEST
public static CommandWord[] values()
for (CommandWord c : CommandWord.values()) System.out.println(c);
public static CommandWord 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 java.lang.String toString()
toString
in class java.lang.Enum<CommandWord>