Movement methods
This is the collection of movement methods within the Checkpoints
interface. There are only three movement methods, goBackward
, goForward
, and goTo
.
goBackward
The goBackward
method moves the state of the underlying Store
back to the previous checkpoint, effectively performing an 'undo' on the Store
data.
goForward
The goForward
method moves the state of the underlying Store
forwards to a future checkpoint, effectively performing an 'redo' on the Store
data.
goTo
The goTo
method moves the state of the underlying Store
backwards or forwards to a specified checkpoint.