src/main/java/seedu/taskmanager/ui/EventTaskListPanel.java
/**
     * @param taskList
     * @return ObserableList containing only event tasks
     */
@param taskList
@return ObserableList containing only event tasks
@param taskList @return ObserableList containing only event tasks
private ObservableList<ReadOnlyTask> extractEventTasks(ObservableList<ReadOnlyTask> taskList) {
        ObservableList<ReadOnlyTask> eventTaskList = FXCollections.<ReadOnlyTask>observableArrayList(taskList);
        for (int index = 0; eventTaskList.size() != index; index++) {
            ReadOnlyTask taskToDelete = eventTaskList.get(index);
            if (!taskToDelete.isEventTask()) {
                eventTaskList.remove(index, index + 1);
                index--;
            }
        }
        return eventTaskList;
    }
private ObservableList < ReadOnlyTask > extractEventTasks ( ObservableList < ReadOnlyTask > taskList ) { ObservableList < ReadOnlyTask > eventTaskList = FXCollections . < ReadOnlyTask > observableArrayList ( taskList ) ; for ( int index = 0 ; eventTaskList . size ( ) != index ; index ++ ) { ReadOnlyTask taskToDelete = eventTaskList . get ( index ) ; if ( ! taskToDelete . isEventTask ( ) ) { eventTaskList . remove ( index , index + 1 ) ; index -- ; } } return eventTaskList ; }
@param taskList
 @return ObserableList containing only event tasks
@param taskList @return ObserableList containing only event tasks