Abstract
This pattern is used to obtain a snap shot of the state of an object without violating its encapsulation. It can be used to store the internal state of the object either for future reference (for example for auditing purposes) or to provide the ability to restore the state of the object if required (for example via an undo operation).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Hunt, J. (2013). Memento. In: Scala Design Patterns. Springer, Cham. https://doi.org/10.1007/978-3-319-02192-8_35
Download citation
DOI: https://doi.org/10.1007/978-3-319-02192-8_35
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-02191-1
Online ISBN: 978-3-319-02192-8
eBook Packages: Computer ScienceComputer Science (R0)