Memento

Without violating encapsulation, capture and externalize an object's internal state allowing the object to be restored to this state later.

Examples in Java
No examples yet.
You can see if there are examples in other languages or
be the first to post an example in Java!