sudoku
Enum Hints

java.lang.Object
  extended by java.lang.Enum<Hints>
      extended by sudoku.Hints
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Hints>

public enum Hints
extends java.lang.Enum<Hints>

Number of possibilities at a location. If there are any ONE_HINT locations, then TWO_HINT is not indicated (it will appear as NO_HINT) to make life simpler for the game player.


Enum Constant Summary
NO_HINT
          3 or more possibilities or 2 possibiliites when another location has a single possibility.
ONE_HINT
          A single possibility for this location
TWO_HINT
          Two possibilities for this location, providing there are no locations with single possibilities.
 
Method Summary
static Hints valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Hints[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_HINT

public static final Hints NO_HINT
3 or more possibilities or 2 possibiliites when another location has a single possibility. No hint is given for this location.


ONE_HINT

public static final Hints ONE_HINT
A single possibility for this location


TWO_HINT

public static final Hints TWO_HINT
Two possibilities for this location, providing there are no locations with single possibilities.

Method Detail

values

public static Hints[] 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 (Hints c : Hints.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Hints valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null