package seedu.tasklist.logic.commands;

public class UpdateCommand extends Command {

    @Override
    public CommandResult execute() {
        // TODO Auto-generated method stub
        return null;
    }

}

@@ -37,174 +37,2518 @@
 s;%0A%0A
-public class UpdateCommand extends Command %7B%0A%0A    @Override%0A    public CommandResult execute() %7B%0A        // TODO Auto-generated method stub%0A        return null;
+import seedu.tasklist.commons.core.Messages;%0Aimport seedu.tasklist.commons.core.UnmodifiableObservableList;%0Aimport seedu.tasklist.model.task.EndTime;%0Aimport seedu.tasklist.model.task.Priority;%0Aimport seedu.tasklist.model.task.ReadOnlyTask;%0Aimport seedu.tasklist.model.task.StartTime;%0Aimport seedu.tasklist.model.task.Task;%0Aimport seedu.tasklist.model.task.TaskDetails;%0Aimport seedu.tasklist.model.task.UniqueTaskList.PersonNotFoundException;%0A%0Apublic class UpdateCommand extends Command %7B%0A%0A    public static final String COMMAND_WORD = %22update%22;%0A%0A    public static final String MESSAGE_USAGE = COMMAND_WORD%0A            + %22: Updates the task identified by the index number used in the last task listing.%5Cn%22%0A            + %22Parameters: INDEX %5BTASKNAME%5D %5Bat/from %5BSTART_TIME%5D%5BSTART_DATE%5D%5D %5Bto/by %5BEND_TIME%5D%5BEND_DATE%5D%5D %5Bp/PRIORITY%5D%5Cn%22 + %22Example: %22 + COMMAND_WORD + %22 1 at 13/09/2016 5pm%22;%0A%0A    %0A    public static final String MESSAGE_UPDATE_TASK_SUCCESS = %22Task successfully updated: %251$s%22;%0A    %0A    %0A    private int targetIndex;%0A    private TaskDetails taskDetails;%0A    private StartTime startTime;%0A//  private StartDate startDate;%0A    private EndTime endTime;%0A//  private EndDate endDate;%0A    private Priority priority;%0A    %0A    public UpdateCommand(int targetIndex, %0A            TaskDetails taskDetails, %0A            StartTime startTime, %0A            //StartDate startDate,%0A            EndTime endTime,%0A            //EndDate endDate,%0A            Priority priority)%7B%0A        this.targetIndex = targetIndex;%0A        this.taskDetails = taskDetails;%0A        this.startTime = startTime;%0A//      this.startDate = startDate;%0A        this.endTime = endTime;%0A//      this.endDate = endDate;%0A        this.priority = priority;%0A    %7D%0A    %0A    @Override%0A    public CommandResult execute() %7B%0A        UnmodifiableObservableList%3CTask%3E lastShownList = model.getModifiableTaskList();%0A        if(targetIndex %3E= lastShownList.size() %7C%7C targetIndex %3C 1)%7B%0A            return new CommandResult(Messages.MESSAGE_INVALID_PERSON_DISPLAYED_INDEX);%0A        %7D%0A        else%7B%0A            Task taskToUpdate = lastShownList.get(targetIndex);%0A            taskToUpdate.setTaskDetails(taskDetails);%0A            taskToUpdate.setStartTime(startTime);%0A//          taskToUpdate.setStartDate(startDate);%0A            taskToUpdate.setEndTime(endTime);%0A//          taskToUpdate.setEndDate(endTime);%0A            taskToUpdate.setPriority(priority);%0A            return new CommandResult(String.format(MESSAGE_UPDATE_TASK_SUCCESS, taskToUpdate));%0A        %7D
 %0A    %7D%0A
-%0A%7D%0A
+%7D

Add UpdateCommand.java