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