public class DefaultScheduleModel extends Object implements ScheduleModel, Serializable
Constructor and Description |
---|
DefaultScheduleModel() |
DefaultScheduleModel(List<ScheduleEvent> events) |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(ScheduleEvent event) |
void |
clear() |
boolean |
deleteEvent(ScheduleEvent event) |
ScheduleEvent |
getEvent(String id) |
int |
getEventCount() |
List<ScheduleEvent> |
getEvents() |
boolean |
isEventLimit() |
void |
setEventLimit(boolean eventLimit) |
void |
updateEvent(ScheduleEvent event) |
public DefaultScheduleModel()
public DefaultScheduleModel(List<ScheduleEvent> events)
public void addEvent(ScheduleEvent event)
addEvent
in interface ScheduleModel
public boolean deleteEvent(ScheduleEvent event)
deleteEvent
in interface ScheduleModel
public List<ScheduleEvent> getEvents()
getEvents
in interface ScheduleModel
public ScheduleEvent getEvent(String id)
getEvent
in interface ScheduleModel
public void updateEvent(ScheduleEvent event)
updateEvent
in interface ScheduleModel
public int getEventCount()
getEventCount
in interface ScheduleModel
public void clear()
clear
in interface ScheduleModel
public boolean isEventLimit()
isEventLimit
in interface ScheduleModel
public void setEventLimit(boolean eventLimit)
Copyright © 2017. All rights reserved.