Interface AppointmentData

All Known Subinterfaces:
Appointment, AppointmentRequest

public interface AppointmentData
Details of an Appointment or AppointmentRequest. The data include a description and the expected duration. Think of a lesson taking 45 minutes. Another example is having a treatment at a dentist or a beauty parlor. The duration, priority, and description are known, but there is no time or date allocated yet.
Author:
Pieter van den Hombergh p.vandenhombergh@fontys.nl
  • Method Details

    • getDuration

      Duration getDuration()
      The duration of this appointment data.
      Returns:
      the duration of the appointment.
    • getDescription

      String getDescription()
      The description of the appointment.
      Returns:
      non-empty string describing the appointment.
    • getPriority

      Priority getPriority()
      Get the priority for the appointment.
      Returns:
      the priority
    • toString

      String toString()
      Get the textual representation of AppointmentData. Contains description, duration and priority.
      Overrides:
      toString in class Object
      Returns:
      AppointmentData text.
    • equals

      boolean equals(Object obj)
      Defines equality. Must be based on all fields of this class.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object to check equality with
      Returns:
      true if the two appointments are equal
    • hashCode

      int hashCode()
      Calculate a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode for this object