001package edu.pdx.cs410J.whitlock.client; 002 003import edu.pdx.cs410J.AbstractAppointmentBook; 004 005import java.util.ArrayList; 006import java.util.Collection; 007 008public class AppointmentBook extends AbstractAppointmentBook<Appointment> 009{ 010 011 private Collection<Appointment> appts = new ArrayList<>(); 012 013 @Override 014 public String getOwnerName() 015 { 016 return "My Owner"; 017 } 018 019 @Override 020 public Collection<Appointment> getAppointments() 021 { 022 return this.appts; 023 } 024 025 @Override 026 public void addAppointment( Appointment appt ) 027 { 028 this.appts.add(appt); 029 } 030}