java.io.Serializable, java.lang.Comparable<SpaceShip.ShipFlag>public static enum SpaceShip.ShipFlag extends java.lang.Enum<SpaceShip.ShipFlag>
| Enum Constant | Description |
|---|---|
ARTI_GRAV |
|
IN_THE_AIR |
|
NO_GRAVITY |
| Modifier and Type | Method | Description |
|---|---|---|
static SpaceShip.ShipFlag |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SpaceShip.ShipFlag[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpaceShip.ShipFlag IN_THE_AIR
public static final SpaceShip.ShipFlag NO_GRAVITY
public static final SpaceShip.ShipFlag ARTI_GRAV
public static SpaceShip.ShipFlag[] values()
for (SpaceShip.ShipFlag c : SpaceShip.ShipFlag.values()) System.out.println(c);
public static SpaceShip.ShipFlag 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