public static enum Hanoi.Place extends java.lang.Enum<Hanoi.Place>
Enum Constant and Description |
---|
LEFT
Levá věž.
|
MIDDLE
Prostřední věž.
|
RIGHT
Pravá věž.
|
Modifier and Type | Field and Description |
---|---|
static int |
COUNT
Počet věží.
|
Modifier and Type | Method and Description |
---|---|
static Hanoi.Place |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Hanoi.Place[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hanoi.Place LEFT
public static final Hanoi.Place MIDDLE
public static final Hanoi.Place RIGHT
public static Hanoi.Place[] values()
for (Hanoi.Place c : Hanoi.Place.values()) System.out.println(c);
public static Hanoi.Place 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