Package Common

Enum Class AppointmentStatus

All Implemented Interfaces:
Serializable, Comparable<AppointmentStatus>, Constable

public enum AppointmentStatus extends Enum<AppointmentStatus>
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.
  • Enum Constant Details

    • REQUESTED

      public static final AppointmentStatus REQUESTED
      Indicates that the appointment has been requested but not yet confirmed.
    • CONFIRMED

      public static final AppointmentStatus CONFIRMED
      Indicates that the appointment has been confirmed.
    • COMPLETED

      public static final AppointmentStatus COMPLETED
      Indicates that the appointment has been completed.
    • FREE

      public static final AppointmentStatus FREE
      Indicates that the appointment slot is currently free.
    • DECLINED

      public static final AppointmentStatus DECLINED
      Indicates that the appointment has been declined.
  • Method Details

    • values

      public static AppointmentStatus[] 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 AppointmentStatus 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
    • fromString

      public static AppointmentStatus fromString(String status)
      Converts a string representation of an appointment status to its corresponding AppointmentStatus enum value.
      Parameters:
      status - the string representation of the appointment status
      Returns:
      the corresponding AppointmentStatus enum value or REQUESTED if the input is invalid