public enum Key extends java.lang.Enum<Key>
Enum Constant and Description |
---|
CORRECT
Na příslušné pozici tipu je kolíček správné barvy a ve správné pozici.
|
INVALID
Na příslušné pozici tipu je nesprávný kolíček.
|
WRONG
Na příslušné pozici tipu je kolíček správné barvy, ale v nesprávné
pozici.
|
Modifier and Type | Method and Description |
---|---|
LightColor |
getColor()
Pro vizualizaci určuje barvu
kolíčku.
|
static Key |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Key[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Key CORRECT
public static final Key WRONG
public static final Key INVALID
public static Key[] values()
for (Key c : Key.values()) System.out.println(c);
public static Key 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 LightColor getColor()