implemented getPastMeeting(id)
implemented getFutureMeeting(id)
implemented getFutureMeetingList(Contact) -- additional mappings of
contacts to sets of past/future meetings to aid this method. Thanks to
some googling (see
http://java2novice.com/java-collections-and-util/treeset/comparator-object/
and API page for Comparator) these sets are kept chronologically sorted
through the use of TreeSets initialised with a Comparator<Meeting>
obtained from the newly implemented static method
CalendarUtil.getMeetingComparator()
implemented getFutureMeetingList(Calendar):
similarly to storing maps of contact->set of meetings, now also store
map of date->set of meetings to store all meetings scheduled for the
same date (ignoring time).
this is aided by new static method CalendarUtil.trimTime(Calendar) which
returns a calendar with the same date as the param with all time fields
set to zero (ie midnight of the given date).
implemented getPastMeetingList(Contact):
almost identical to getFutureMeetingList(Contact)
implemented addNewPastMeeting()
implemented addMeetingNotes(int, String)
added public method addNotes(String) for PastMeetingImpl, which is
identical to addNotes(String) in ContactImpl
implemented addNewContact(name, notes) -- this one is simple enough!
implemented getContacts(name)
implemented flush().
ContactManagerImpl now fully implemented - requires testing however
just removed some unused imports