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