- 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 Summary
-
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. -
equals
Defines equality. Must be based on all fields of this class. -
hashCode
int hashCode()Calculate a hash code value for the object.
-