Enum Class Directions

java.lang.Object
java.lang.Enum<Directions>
javachess.decorators.Directions
All Implemented Interfaces:
Serializable, Comparable<Directions>, Constable

public enum Directions extends Enum<Directions>
  • Enum Constant Details

    • TOP

      public static final Directions TOP
    • BOTTOM

      public static final Directions BOTTOM
    • LEFT

      public static final Directions LEFT
    • TOP_LEFT

      public static final Directions TOP_LEFT
    • TOP_RIGHT

      public static final Directions TOP_RIGHT
    • BOTTOM_LEFT

      public static final Directions BOTTOM_LEFT
    • BOTTOM_RIGHT

      public static final Directions BOTTOM_RIGHT
    • TWO_LEFT_ONE_UP

      public static final Directions TWO_LEFT_ONE_UP
    • TWO_LEFT_ONE_DOWN

      public static final Directions TWO_LEFT_ONE_DOWN
    • TWO_RIGHT_ONE_UP

      public static final Directions TWO_RIGHT_ONE_UP
    • TWO_RIGHT_ONE_DOWN

      public static final Directions TWO_RIGHT_ONE_DOWN
    • ONE_LEFT_TWO_UP

      public static final Directions ONE_LEFT_TWO_UP
    • ONE_LEFT_TWO_DOWN

      public static final Directions ONE_LEFT_TWO_DOWN
    • ONE_RIGHT_TWO_UP

      public static final Directions ONE_RIGHT_TWO_UP
    • ONE_RIGHT_TWO_DOWN

      public static final Directions ONE_RIGHT_TWO_DOWN
  • Field Details

    • dx

      public final int dx
    • dy

      public final int dy
  • Method Details

    • values

      public static Directions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Directions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null