public enum ShipOrientation extends java.lang.Enum<ShipOrientation>
| Enum Constant and Description |
|---|
h
Горизонтальное расположение
|
v
Вертикальное расположение
|
| Modifier and Type | Method and Description |
|---|---|
static ShipOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShipOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShipOrientation h
public static final ShipOrientation v
public static ShipOrientation[] values()
for (ShipOrientation c : ShipOrientation.values()) System.out.println(c);
public static ShipOrientation 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