Enum Class RoomStatus
- All Implemented Interfaces:
Serializable, Comparable<RoomStatus>, Constable
Indicates the state a Room is currently in:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheRoomis available for use.TheRoomis not available for use, because someone is currently using it or has placed aReservationthat is currently valid.Some seats in theRoomare occupied, some are still available for use. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RoomStatusReturns the enum constant of this class with the specified name.static RoomStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FREE
TheRoomis available for use. -
OCCUPIED
TheRoomis not available for use, because someone is currently using it or has placed aReservationthat is currently valid. -
PARTIALLY_OCCUPIED
Some seats in theRoomare occupied, some are still available for use. It is not possible to book the whole Room.
-
-
Field Details
-
status
-
-
Constructor Details
-
RoomStatus
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-