Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.05 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.05 KB

学习java设计模式中的代码示例

创建型模式

  1. 工厂方法模式(Factory Method)
  2. 抽象工厂模式(Abstract Factory)
  3. 建造者模式(Builder Factory)
  4. 原型模式(Prototype)
  5. 单例模式(Singleton)

结构性模型

  1. 适配器模式(Adapter)
  2. 桥接模式(Bridge)
  3. 代理模式(Proxy)
  4. 外观模式(Facade)
  5. 装饰模式(Decorator)
  6. 组合模式(Composite)
  7. 享元模式(Flyweight)

行为性模式

  1. 命令模式(Command)
  2. 观察者模式(Observer)
  3. 责任链模式(Chain of Responsibility)
  4. 迭代器模式(Iterator)
  5. 访问者模式(Visitor)
  6. 状态模式(State)
  7. 备忘录模式(Memento)
  8. 策略模式(Strategy)
  9. 调停者模式(Mediator)
  10. 模板方法模式(Template Method)
  11. 解释器模式(Interpreter)

设计模式中有几个核心的模式

  • 组合模式(Composite)
  • 迭代器模式(Iterator)
  • 抽象工厂模式(Abstract Factory)
  • 访问者模式(Visitor)