25种设计模式
创建型
| 1 | 单例 | Singleton Pattern |
|---|
| 2 | 简单工厂 | Simple Factory Pattern |
| 3 | 工厂方法 | Factory Method Pattern |
| 4 | 抽象工厂 | Abstract Factory Pattern |
| 5 | 生成器(建造者模式) | Builder Pattern |
| 6 | 原型模式 | Prototype Pattern |
行为型
| 7 | 责任链 | Chain of Responsibility Pattern |
|---|
| 8 | 命令 | Command Pattern |
| 9 | 解释器 | Interpreter Pattern |
| 10 | 迭代器 | Iterator Pattern |
| 11 | 中介者 | Mediator Pattern |
| 12 | 备忘录 | Memento Pattern |
| 13 | 观察者 | Observer Pattern |
| 14 | 状态 | State Pattern |
| 15 | 策略 | Strategy Pattern |
| 16 | 模板方法 | Template Method Pattern |
| 17 | 访问者 | Visitor Pattern |
| 18 | 空对象 | Null Object Pattern |
结构型
| 19 | 适配器 | Adapter Pattern |
|---|
| 20 | 桥接(桥梁模式/桥接模式) | Bridge Pattern |
| 21 | 组合 | Composite Pattern |
| 22 | 装饰 | Decorator Pattern |
| 23 | 外观(门面模式/外观模式) | Facade Pattern |
| 24 | 享元 | Flyweight Pattern |
| 25 | 代理 | Proxy pattern |