Enum SailingMove
- java.lang.Object
-
- java.lang.Enum<SailingMove>
-
- ai.libs.jaicore.search.exampleproblems.sailing.SailingMove
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SailingMove>
public enum SailingMove extends java.lang.Enum<SailingMove>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SailingMove
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SailingMove[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
N
public static final SailingMove N
-
NE
public static final SailingMove NE
-
E
public static final SailingMove E
-
SE
public static final SailingMove SE
-
S
public static final SailingMove S
-
SW
public static final SailingMove SW
-
W
public static final SailingMove W
-
NW
public static final SailingMove NW
-
-
Method Detail
-
values
public static SailingMove[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SailingMove c : SailingMove.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SailingMove valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-