Package sac.model

Enum Class Board.PlacePieceStatus

java.lang.Object
java.lang.Enum<Board.PlacePieceStatus>
sac.model.Board.PlacePieceStatus
All Implemented Interfaces:
Serializable, Comparable<Board.PlacePieceStatus>, Constable
Enclosing class:
Board

public static enum Board.PlacePieceStatus extends Enum<Board.PlacePieceStatus>
The return status for PlacePiece
  • Enum Constant Details

    • ADD_OK

      public static final Board.PlacePieceStatus ADD_OK
      The placement is successful and no row is filled.
    • ADD_ROW_FILLED

      public static final Board.PlacePieceStatus ADD_ROW_FILLED
      The placement is successful and some row is filled.
    • ADD_OUT_BOUNDS

      public static final Board.PlacePieceStatus ADD_OUT_BOUNDS
      The placement failed due to out of bound.
    • ADD_BAD

      public static final Board.PlacePieceStatus ADD_BAD
      The placement failed due to conflict between placed pieces.
  • Method Details

    • values

      public static Board.PlacePieceStatus[] 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 Board.PlacePieceStatus 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
    • isSuccess

      public boolean isSuccess()