Package edu.pdx.cs410J
Class AbstractAppointmentBook<T extends AbstractAppointment>
java.lang.Object
edu.pdx.cs410J.AbstractAppointmentBook<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AppointmentBook
public abstract class AbstractAppointmentBook<T extends AbstractAppointment>
extends Object
implements Serializable
This class represents an appointment book that holds multiple
appointments. Each appointment book has an owner.
- Author:
- David Whitlock
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addAppointment
(T appt) Adds an appointment to this appointment bookabstract Collection<T>
Returns all of the appointments in this appointment book as a collection ofAbstractAppointment
s.abstract String
Returns the name of the owner of this appointment book.final String
toString()
Returns a brief textual description of this appointment book
-
Constructor Details
-
AbstractAppointmentBook
public AbstractAppointmentBook()
-
-
Method Details
-
getOwnerName
Returns the name of the owner of this appointment book. -
getAppointments
Returns all of the appointments in this appointment book as a collection ofAbstractAppointment
s. -
addAppointment
Adds an appointment to this appointment book -
toString
Returns a brief textual description of this appointment book
-