public enum Score extends Enum<Score>
Enum Constant and Description |
---|
DRAW_CLAIMED |
INSUFFICIENT_MATERIAL |
LOSING_CHECK_MATE |
MAX |
MIN |
NULL |
STALE_MATE |
WINNING_CHECK_MATE |
Modifier and Type | Field and Description |
---|---|
short |
value |
Modifier and Type | Method and Description |
---|---|
static Score |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Score[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Score NULL
public static final Score MIN
public static final Score MAX
public static final Score LOSING_CHECK_MATE
public static final Score WINNING_CHECK_MATE
public static final Score STALE_MATE
public static final Score INSUFFICIENT_MATERIAL
public static final Score DRAW_CLAIMED
public static Score[] values()
for (Score c : Score.values()) System.out.println(c);
public static Score 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 nullCopyright © 2020. All rights reserved.