学习笔记——备忘录模式Memento
2024-10-16 13:32:18
备忘录模式,可以将当前状态保存,并随时恢复。
Originator存在状态state,当需要保存此状态时,通过CreateMemento创建一个备忘录对象Memento保存此状态;而需要恢复相应状态时,使用RestoreMemento(memento)将相应的状态恢复回来。
最新文章
- PHP socket上传文件图片
- jstl
- mysql 笔记
- Spark的数据存储
- ecshop Admin后台商品列表处(上架、下架、精品...取消精品)增加操作
- [转载] Spring MVC - 处理器拦截器
- hdu 2034 人见人爱A-B
- hdu 2199 Can you solve this equation?(高精度二分)
- Apache的编译安装error: APR not found. Please read the documentation
- 通过 SuperObject 生成 json string
- Win7与虚拟机VMware下运行的Ubuntu共享文件夹
- [学习笔记]设计模式之Proxy
- Word Pattern
- ANDROID 开机启动VNC SERVER
- java —— equals 与 ==
- Spring MVC基础学习
- FutureTask理解
- 【Angular专题】——(1)Angular,孤傲的变革者
- Golang的md5 hash计算
- 审核被拒:1. 1 Safety: Objectionable Content ;3. 1.1 Business: Payments - In-App Purchase ;4. 3 Design: Spam ;5. 1.1 Legal: Privacy - Data Collection and Storage