public enum ChessMode extends Enum<ChessMode>
Enum Constant and Description |
---|
blacksVsComputer |
computerVsComputer |
whitesVsBlacks |
whitesVsComputer |
Modifier and Type | Method and Description |
---|---|
abstract String |
getDescription() |
static ChessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChessMode whitesVsBlacks
public static final ChessMode whitesVsComputer
public static final ChessMode blacksVsComputer
public static final ChessMode computerVsComputer
public static ChessMode[] values()
for (ChessMode c : ChessMode.values()) System.out.println(c);
public static ChessMode 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 abstract String getDescription()
Copyright © 2017. All Rights Reserved.