Official description of the Memento pattern
Without violating encapsulation, capture and externalize an object's internal state allowing the object to be restored to this state later.
Memento lets you save and restore the previous state of an object without revealing the details of its implementation.