public class ScheduleBuilder extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ScheduleBuilder.ActivityEntry |
Modifier and Type | Field and Description |
---|---|
private List<ScheduleBuilder.ActivityEntry> |
activities |
private Schedule |
schedule |
Constructor and Description |
---|
ScheduleBuilder(Schedule schedule) |
Modifier and Type | Method and Description |
---|---|
Schedule |
build() |
ScheduleBuilder |
withActivity(int startTime,
Activity activity) |
private final Schedule schedule
private final List<ScheduleBuilder.ActivityEntry> activities
public ScheduleBuilder(Schedule schedule)
public ScheduleBuilder withActivity(int startTime, Activity activity)
public Schedule build()