Memento

Memento: Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later. 

  

原文地址:https://www.cnblogs.com/jasonC/p/3457795.html