Package dev.davwheat.enums
Enum BoardSpaceType
- java.lang.Object
-
- java.lang.Enum<BoardSpaceType>
-
- dev.davwheat.enums.BoardSpaceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BoardSpaceType>
,java.lang.constant.Constable
public enum BoardSpaceType extends java.lang.Enum<BoardSpaceType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMAL
MISS_NEXT_TURN
START
-
Method Summary
Modifier and Type Method Description static BoardSpaceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BoardSpaceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANIMAL
public static final BoardSpaceType ANIMAL
-
MISS_NEXT_TURN
public static final BoardSpaceType MISS_NEXT_TURN
-
START
public static final BoardSpaceType START
-
-
Method Detail
-
values
public static BoardSpaceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoardSpaceType 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
-
-