随笔分类 -  Design Pattern

常见设计模式交流分享
摘要:名称: 解释器模式(Interpreter Pattern)-类行为模式 问题: The Interpreter pattern interprets a language to define a representation for its grammar along with an interp 阅读全文
posted @ 2020-07-01 18:10 diameter 阅读(126) 评论(0) 推荐(0) 编辑
摘要:名称: 备忘录模式(Memento Pattern)-对象行为模式 问题: The Memento pattern contains a snapshot of the state of an object, so that the object can return to its original 阅读全文
posted @ 2020-07-01 17:46 diameter 阅读(127) 评论(0) 推荐(0) 编辑
摘要:名称: 访问者模式(Visitor Pattern)-对象行为模式 问题: The Visitor pattern provides a maintainable, easy way to represent an operation to be performed on the elements 阅读全文
posted @ 2020-07-01 17:29 diameter 阅读(130) 评论(0) 推荐(0) 编辑
摘要:名称: 迭代器模式(Iterator Pattern)-对象行为模式 问题: The iterator pattern provides a consistent way to sequentially access items in a collection that is independent 阅读全文
posted @ 2020-07-01 17:01 diameter 阅读(119) 评论(0) 推荐(0) 编辑
摘要:名称: 中介者模式(Mediator Pattern)-对象行为型模式 问题: The Mediator pattern simplifies communication among objects in a system by introducing a single object that ma 阅读全文
posted @ 2020-06-30 18:42 diameter 阅读(125) 评论(0) 推荐(0) 编辑
摘要:名称: 观察者模式(Observer Pattern)-对象行为型模式 问题: Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all i 阅读全文
posted @ 2020-06-30 13:37 diameter 阅读(118) 评论(0) 推荐(0) 编辑
摘要:名称: 状态模式(State Pattern)-对象行为模式 问题: The State pattern allows an object to alter its behavior when its internal state changes. The object appears to cha 阅读全文
posted @ 2020-06-29 21:43 diameter 阅读(119) 评论(0) 推荐(0) 编辑
摘要:名称: 责任链模式 (Chain of Responsibility Pattern)-对象行为型模式 问题: The Chain of Responsibility pattern establishes a chain within a system, so that a message can 阅读全文
posted @ 2020-06-29 17:48 diameter 阅读(172) 评论(0) 推荐(0) 编辑
摘要:名称: 命令模式(Command Pattern)-对象行为型模式 问题: The Command pattern encapsulates a request in an object, which enables you to store the command, pass the comman 阅读全文
posted @ 2020-06-28 21:02 diameter 阅读(136) 评论(0) 推荐(0) 编辑
摘要:名称: 策略模式(Strategy Pattern)-对象行为模式 问题: The intent of the Strategy Pattern is to define a family of algorithms, encapsulate each algorithm, and make the 阅读全文
posted @ 2020-06-28 18:47 diameter 阅读(130) 评论(0) 推荐(0) 编辑
摘要:名称: 模板方法模式(Template Method Pattern)-类行为型模式 问题: The Template Method pattern provides a method that allows subclasses to override parts of the method wi 阅读全文
posted @ 2020-06-27 18:46 diameter 阅读(121) 评论(0) 推荐(0) 编辑
摘要:名称: 组合模式(Composite Pattern)-对象结构型模式 问题: Compose Objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individ 阅读全文
posted @ 2020-06-26 19:52 diameter 阅读(123) 评论(0) 推荐(0) 编辑
摘要:名称: 享元模式(Flyweight Pattern)-对象结构型模式 问题: The flyweight design pattern enables use sharing of objects to support large numbers of fine-grained objects e 阅读全文
posted @ 2020-06-26 12:33 diameter 阅读(200) 评论(0) 推荐(0) 编辑
摘要:名称: 外观模式(Facade Pattern)-对象结构型模式 问题: The Facade pattern provides a unified interface to a group of interfaces in a subsystem. The Facade pattern defin 阅读全文
posted @ 2020-06-26 10:30 diameter 阅读(109) 评论(0) 推荐(0) 编辑
摘要:名称: 装饰模式(Decorator Pattern)-对象结构型模式 问题: Wikipedia: The decorator pattern can be used to extend (decorate) the functionality of a certain object static 阅读全文
posted @ 2020-06-25 17:24 diameter 阅读(162) 评论(0) 推荐(0) 编辑
摘要:名称: 桥接模式(Bridge Pattern)-对象结构型模式 问题: Bridge pattern decouples an abstraction from its implementation so that the two can vary independently. 将抽象部分与它的实 阅读全文
posted @ 2020-06-24 16:42 diameter 阅读(136) 评论(0) 推荐(0) 编辑
摘要:名称: 适配器模式(Adapter Pattern)-类对象结构型模式 别名:包装器Wrapper 问题: The Adapter pattern acts as an intermediary between two classes, converting the interface of one 阅读全文
posted @ 2020-06-23 16:31 diameter 阅读(125) 评论(0) 推荐(0) 编辑
摘要:名称: 代理模式(Proxy Pattern)-对象结构型模式 问题: The Proxy design pattern Provides a surrogate or placeholder for another object to control access to it. 为其他对象提供一种 阅读全文
posted @ 2020-06-22 19:03 diameter 阅读(124) 评论(0) 推荐(0) 编辑
摘要:名称: 原型模式(Prototype Pattern)-对象创建型模式 问题: Specify the kind of objects to create using a prototypical instance, and create new objects by copying this pr 阅读全文
posted @ 2020-06-21 11:52 diameter 阅读(117) 评论(0) 推荐(0) 编辑
摘要:名称: 建造者模式(Builder Pattern)-对象创建型模式 问题: Separate the construction of a complex object from its representation so that the same construction process can 阅读全文
posted @ 2020-06-21 10:55 diameter 阅读(118) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示