Class InputCommandProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(InputCommand command)
      executes the given command
      boolean redo()
      Re-does the last command that was undone.
      boolean undo()
      Undoes the last command
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public void execute​(InputCommand command)
        executes the given command
        Parameters:
        command - input command to be executed
      • undo

        public boolean undo()
        Undoes the last command
        Returns:
        true if an operation was undone
      • redo

        public boolean redo()
        Re-does the last command that was undone.
        Returns:
        true if an operation was re-done