예제 #1
0
 // make a BackgroundEvent for the task
 Schedule.BackgroundEvent bEvent(BackgroundTask task, Schedule.EventType event) {
   return new Schedule.BackgroundEvent(
       task, (event == Schedule.EventType.START ? task.getStart() : task.getFinish()), event);
 }