Bill.Lin's Notes
  • Me
  • Posts
  • Categories
  • Tags
  • Search
#

Memento

標籤 · 1 篇文章

Memento — 不破壞封裝的快照與復原

Memento 模式以快照記錄物件狀態,在不暴露內部結構的前提下支援 undo/redo,Java record 是現代的輕量實作。

2018-08-07 ·
#DesignPattern #Behavioral #Memento
← 回到所有標籤

© 2026 Bill Lin. All rights reserved.

github linkedin email