Package Common
Enum Class AppointmentStatus
- All Implemented Interfaces:
Serializable
,Comparable<AppointmentStatus>
,Constable
The
AppointmentStatus
enum represents the various statuses
that an appointment can have in the system. It includes statuses such as
REQUESTED, CONFIRMED, COMPLETED, FREE, and DECLINED.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the appointment has been completed.Indicates that the appointment has been confirmed.Indicates that the appointment has been declined.Indicates that the appointment slot is currently free.Indicates that the appointment has been requested but not yet confirmed. -
Method Summary
Modifier and TypeMethodDescriptionstatic AppointmentStatus
fromString
(String status) Converts a string representation of an appointment status to its correspondingAppointmentStatus
enum value.static AppointmentStatus
Returns the enum constant of this class with the specified name.static AppointmentStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUESTED
Indicates that the appointment has been requested but not yet confirmed. -
CONFIRMED
Indicates that the appointment has been confirmed. -
COMPLETED
Indicates that the appointment has been completed. -
FREE
Indicates that the appointment slot is currently free. -
DECLINED
Indicates that the appointment has been declined.
-
-
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
-
fromString
Converts a string representation of an appointment status to its correspondingAppointmentStatus
enum value.- Parameters:
status
- the string representation of the appointment status- Returns:
- the corresponding
AppointmentStatus
enum value orREQUESTED
if the input is invalid
-