public enum ChessPieceType extends java.lang.Enum<ChessPieceType>
| Enum Constant and Description |
|---|
BISHOP |
KING |
KNIGHT |
PAWN |
QUEEN |
ROOK |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFullName() |
static ChessPieceType |
getPgnType(java.lang.String s) |
java.lang.String |
getShortName() |
java.lang.String |
toString() |
static ChessPieceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChessPieceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChessPieceType PAWN
public static final ChessPieceType KNIGHT
public static final ChessPieceType BISHOP
public static final ChessPieceType ROOK
public static final ChessPieceType QUEEN
public static final ChessPieceType KING
public static ChessPieceType[] values()
for (ChessPieceType c : ChessPieceType.values()) System.out.println(c);
public static ChessPieceType 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 nullpublic java.lang.String getShortName()
public java.lang.String getFullName()
public static ChessPieceType getPgnType(java.lang.String s)
public java.lang.String toString()
toString in class java.lang.Enum<ChessPieceType>Copyright © 2015. All Rights Reserved.