public enum ChessSide extends Enum<ChessSide>
| Modifier and Type | Method and Description |
|---|---|
String |
getFullName() |
String |
getShortName() |
ChessSide |
opposite() |
static ChessSide |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChessSide |
valueOfShortName(String name) |
static ChessSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChessSide WHITE
public static final ChessSide BLACK
public static ChessSide[] values()
for (ChessSide c : ChessSide.values()) System.out.println(c);
public static ChessSide valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getShortName()
public String getFullName()
public ChessSide opposite()
Copyright © 2016. All Rights Reserved.