Enum Class RobotStatus

java.lang.Object
java.lang.Enum<RobotStatus>
za.co.wethinkcode.robots.shared.RobotStatus
All Implemented Interfaces:
Serializable, Comparable<RobotStatus>, Constable

public enum RobotStatus extends Enum<RobotStatus>
Enum storing the different kinds of robot states
  • Enum Constant Details

    • RELOAD

      public static final RobotStatus RELOAD
      This robot is busy reloading
    • REPAIR

      public static final RobotStatus REPAIR
      This robot is busy repairing itself
    • NORMAL

      public static final RobotStatus NORMAL
      Standard state of a robot
    • DEAD

      public static final RobotStatus DEAD
      This robot is dead. This is mostly a diagnostic state.
  • Method Details

    • values

      public static RobotStatus[] 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 RobotStatus 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