public enum EShipSide extends Enum<EShipSide>
| Enum Constant and Description |
|---|
BOW
Front of the ship
|
PORT
Left side of the ship, when facing the bow
|
STARBOARD
Right side of the ship, when facing the bow
|
STERN
Back of the ship
|
| Modifier and Type | Method and Description |
|---|---|
static EShipSide |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EShipSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EShipSide BOW
public static final EShipSide STERN
public static final EShipSide PORT
public static final EShipSide STARBOARD
public static EShipSide[] values()
for (EShipSide c : EShipSide.values()) System.out.println(c);
public static EShipSide 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 © 2011-2015 Sahits GmbH. All Rights Reserved.