Package org.refcodes.data.ext.chess
Enum ChessmanStatus
- java.lang.Object
-
- java.lang.Enum<ChessmanStatus>
-
- org.refcodes.data.ext.chess.ChessmanStatus
-
public enum ChessmanStatus extends java.lang.Enum<ChessmanStatus>
The Enum ChessmanStatus.- Author:
- steiner
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACK_BISHOP
BLACK_KING
BLACK_KING_KO
BLACK_KNIGHT
BLACK_PAWN
BLACK_QUEEN
BLACK_ROOK
NONE
WHITE_BISHOP
WHITE_KING
WHITE_KING_KO
WHITE_KNIGHT
WHITE_PAWN
WHITE_QUEEN
WHITE_ROOK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChessmanStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChessmanStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK_KING
public static final ChessmanStatus BLACK_KING
-
BLACK_KING_KO
public static final ChessmanStatus BLACK_KING_KO
-
BLACK_ROOK
public static final ChessmanStatus BLACK_ROOK
-
BLACK_BISHOP
public static final ChessmanStatus BLACK_BISHOP
-
BLACK_QUEEN
public static final ChessmanStatus BLACK_QUEEN
-
BLACK_KNIGHT
public static final ChessmanStatus BLACK_KNIGHT
-
BLACK_PAWN
public static final ChessmanStatus BLACK_PAWN
-
WHITE_KING
public static final ChessmanStatus WHITE_KING
-
WHITE_KING_KO
public static final ChessmanStatus WHITE_KING_KO
-
WHITE_ROOK
public static final ChessmanStatus WHITE_ROOK
-
WHITE_BISHOP
public static final ChessmanStatus WHITE_BISHOP
-
WHITE_QUEEN
public static final ChessmanStatus WHITE_QUEEN
-
WHITE_KNIGHT
public static final ChessmanStatus WHITE_KNIGHT
-
WHITE_PAWN
public static final ChessmanStatus WHITE_PAWN
-
NONE
public static final ChessmanStatus NONE
-
-
Method Detail
-
values
public static ChessmanStatus[] 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 (ChessmanStatus c : ChessmanStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChessmanStatus 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
-
-