Skip to content

java设计模式示例代码,《设计模式从入门到精通》

Notifications You must be signed in to change notification settings

lq920320/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

学习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)

About

java设计模式示例代码,《设计模式从入门到精通》

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages