public enum Cell extends Enum<Cell>
| Enum Constant and Description |
|---|
EMPTY
Espaço vazio.
|
FOOD
Espaço ocupado pela comida.
|
SNAKE
Espaço ocupado pela cobra.
|
| Modifier and Type | Method and Description |
|---|---|
static Cell |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cell[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cell EMPTY
public static final Cell SNAKE
public static final Cell FOOD
public final Color color
public static Cell[] values()
for (Cell c : Cell.values()) System.out.println(c);
public static Cell 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 © 2016 Tecgraf/PUC-Rio. All rights reserved.