public void restore()
    {
        boolean foundSavePoint = false;

        while (!foundSavePoint && !undoStack.isEmpty())
        {
            Undoable undoable = undoStack.poll();
            undoable.undo();

            foundSavePoint = (undoable instanceof SavePoint);
        }
    }
public void restore()
    {
        boolean foundSavePoint = false;

        while (!foundSavePoint && !undoStack.isEmpty())
        {
            Undoable undoable = undoStack.poll();
            undoable.undo();

            foundSavePoint = (undoable instanceof SavePoint);
        }
    }
public void restore ( ) { boolean foundSavePoint = false ; while ( ! foundSavePoint && ! undoStack . isEmpty ( ) ) { Undoable undoable = undoStack . poll ( ) ; undoable . undo ( ) ; foundSavePoint = ( undoable instanceof SavePoint ) ; } }
{@inheritDoc}
{