public enum CastlingRights extends Enum<CastlingRights>
Modifier and Type | Field and Description |
---|---|
byte |
ind |
Modifier and Type | Method and Description |
---|---|
static CastlingRights |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CastlingRights[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CastlingRights NONE
public static final CastlingRights SHORT
public static final CastlingRights LONG
public static final CastlingRights ALL
public static CastlingRights[] values()
for (CastlingRights c : CastlingRights.values()) System.out.println(c);
public static CastlingRights 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.