摘要: 备忘录模式 概念 Memento is a behavioral design pattern that lets you save and restore the previous state of an object without revealing the details of its im 阅读全文
posted @ 2022-10-06 15:10 内心澎湃的水晶侠 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 中介者模式 概念 Mediator is a behavioral design pattern that lets you reduce chaotic dependencies between objects. The pattern restricts direct communication 阅读全文
posted @ 2022-10-06 14:36 内心澎湃的水晶侠 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 迭代器模式 概念 Iterator is a behavioral design pattern that lets you traverse elements of a collection without exposing its underlying representation (list, 阅读全文
posted @ 2022-10-06 14:01 内心澎湃的水晶侠 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 责任链模式 概念 Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each 阅读全文
posted @ 2022-10-06 11:33 内心澎湃的水晶侠 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 命令模式 别名 Action、Transaction、Command 概念 Command is a behavioral design pattern that turns a request into a stand-alone object that contains all informat 阅读全文
posted @ 2022-10-06 10:58 内心澎湃的水晶侠 阅读(35) 评论(0) 推荐(0) 编辑