@ Override public boolean revertToPreviousState ( ) { if ( stateStack . size == 0 ) { return false ; } S previousState = stateStack . pop ( ) ; changeState ( previousState , false ) ; return true ; }
Changes the Change state back to the previous state . That is the high - most state on the internal stack of previous states .