public static enum EachCommand.Direction extends Enum<EachCommand.Direction>
| Modifier and Type | Method and Description |
|---|---|
static EachCommand.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EachCommand.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EachCommand.Direction RIGHT
public static final EachCommand.Direction DOWN
public static EachCommand.Direction[] values()
for (EachCommand.Direction c : EachCommand.Direction.values()) System.out.println(c);
public static EachCommand.Direction 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 nullCopyright © 2019. All rights reserved.