package example8_1_AfterClass; public class UndoCommand implements Command { /** * Execution of an "Undo" command * is currently handled in the Invoker. * * This method should not be called. * @return */ @Override public boolean execute() { return false; } /** * Execution of an un-"Undo" command * is currently handled in the Invoker. * * This method should not be called, * and "Undo" commands should not be pushed onto the stack. * @return */ @Override public boolean unexecute() { return false; } @Override public String getCommandName() { return "Undo"; } }