Академический Документы
Профессиональный Документы
Культура Документы
*;
public class Calendar {
List<Event> event = new ArrayList();
public Calendar() {
}
// Should allow multiple events to be scheduled over the same time window.
public void schedule(Event event) {
// IMPLEMENT ME
this.event.add(event);
event.toString();
}
public List<ConflictedTimeWindow> findConflictedTimeWindow() {
// IMPLEMENT ME
return null;
}
public static class ConflictedTimeWindow {
private final Date startDate;
private final Date endDate;
private final Set<Integer> conflictedEventIds;
public ConflictedTimeWindow(Date startDate, Date endDate, Set<Integer>
conflictedEventIds) {
this.startDate = startDate;
this.endDate = endDate;
this.conflictedEventIds = conflictedEventIds;
}
public Date getStartDate() {
return startDate;
}
public Date getEndDate() {
return endDate;
}