Package sudoku
Enum PlayerMemory.MaskState
- java.lang.Object
-
- java.lang.Enum<PlayerMemory.MaskState>
-
- sudoku.PlayerMemory.MaskState
-
- All Implemented Interfaces:
Serializable,Comparable<PlayerMemory.MaskState>
- Enclosing class:
- PlayerMemory
private static enum PlayerMemory.MaskState extends Enum<PlayerMemory.MaskState>
Definition of sudoku field mask. NONE - no mask applied, thus field digit may be modified freely SOFT - field digit cannot be modified until soft reset HARD - field digit cannot be modified until hard reset
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMaskState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlayerMemory.MaskStatevalueOf(String name)Returns the enum constant of this type with the specified name.static PlayerMemory.MaskState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PlayerMemory.MaskState NONE
-
SOFT
public static final PlayerMemory.MaskState SOFT
-
HARD
public static final PlayerMemory.MaskState HARD
-
-
Method Detail
-
values
public static PlayerMemory.MaskState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PlayerMemory.MaskState c : PlayerMemory.MaskState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayerMemory.MaskState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-