public class Schedule
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.util.List<DaySchedule> |
daySchedules
The DaySchedules that make up the schedule
|
private static long |
serialVersionUID
Attributes a unique ID to the class to make serialization work.
|
Constructor and Description |
---|
Schedule() |
Schedule(java.util.List<DaySchedule> daySchedules) |
Schedule(Schedule schedule) |
Modifier and Type | Method and Description |
---|---|
void |
addTimeSlot(TimeSlot newTimeSlot,
Day day)
Adds a TimeSlot to the schedule
|
boolean |
equals(java.lang.Object o) |
java.util.List<DaySchedule> |
getDaySchedules()
Returns a copy of the time slots of the schedule, organized by day.
|
java.util.List<TimeSlot> |
getDayTimeSlots(Day day)
Gets all the TimeSlots for a day
|
int |
hashCode() |
boolean |
isEmpty() |
private static final long serialVersionUID
private java.util.List<DaySchedule> daySchedules
public Schedule()
public Schedule(java.util.List<DaySchedule> daySchedules)
public Schedule(Schedule schedule)
public void addTimeSlot(TimeSlot newTimeSlot, Day day)
newTimeSlot
- TimeSlot to be addedday
- public java.util.List<TimeSlot> getDayTimeSlots(Day day)
day
- public java.util.List<DaySchedule> getDaySchedules()
public boolean isEmpty()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object