package seedu.tache.logic.commands;

import seedu.tache.logic.commands.exceptions.CommandException;

public interface Undoable {

    //@@author A0150120H
    /**
     * Returns true if the command can be undone.
     */
    public abstract boolean isUndoable();

    //@@author A0150120H
    /**
     * Attempts to undo the command.
     * If the undo is successful, returns the CommandResult feedback string of the original command
     * @throws CommandException if the undo operation fails
     */
    public abstract String undo() throws CommandException;
}

@@ -93,16 +93,36 @@
 eption;%0A
+//@@author A0150120H
 %0Apublic 
@@ -147,32 +147,8 @@
  %7B%0A%0A
-    //@@author A0150120H
 %0A   
@@ -257,33 +257,8 @@
 );%0A%0A
-    //@@author A0150120H%0A
     

Add author tag