Enum Class RoomRemoveMode

java.lang.Object
java.lang.Enum<RoomRemoveMode>
com.tenio.core.entity.define.mode.RoomRemoveMode
All Implemented Interfaces:
Serializable, Comparable<RoomRemoveMode>, Constable

public enum RoomRemoveMode extends Enum<RoomRemoveMode>
All modes associated with the removing room conditions.
  • Enum Constant Details

    • WHEN_EMPTY

      public static final RoomRemoveMode WHEN_EMPTY
      Condition: Room is empty.
    • NEVER_REMOVE

      public static final RoomRemoveMode NEVER_REMOVE
      Condition: Room is never removed.
  • Method Details

    • values

      public static RoomRemoveMode[] 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 RoomRemoveMode 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RoomRemoveMode>