Skip to content

Shen-Xmas/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Design Patterns

github-design-patterns forks github-design-patterns stars github-design-patterns issues github-design-patterns pull-requests GitHub Contributors

Java 设计模式 Demos
Demos of java design patterns


创建型模式 (Creational Pattern)

  • 单例模式(Singleton Pattern)
  • 工厂模式(Factory Pattern)
  • 抽象工厂模式(Abstract Factory Pattern)
  • 建造者模式(Builder Pattern)
  • 原型模式(Prototype Pattern)

结构型模式 (Structural Pattern)

  • 适配器模式(Adapter Pattern)
  • 外观模式(Facade Pattern)
  • 代理模式(Proxy Pattern)
  • 组合模式(Composite Pattern)
  • 享元模式(Flyweight Pattern)
  • 装饰模式(Decorator Pattern)
  • 桥接模式(Bridge Pattern)

行为型模式 (Behavioral Pattern)

  • 模板方法模式(Template Method Pattern)
  • 责任链模式(Chain of Responsibility Pattern)
  • 中介者模式(Mediator Pattern)
  • 观察者模式(Observer Pattern)
  • 迭代器模式(Iterator Pattern)
  • 备忘录模式(Memento Pattern)
  • 解释器模式(Interpreter Pattern)
  • 访问者模式(Visitor Pattern)
  • 命令模式(Command Pattern)
  • 策略模式(Strategy Pattern)
  • 状态模式(State Pattern)



设计模式六大原则

  1. 开闭原则 Open Close Principle
  2. 里氏代换原则 Liskov Substitution Principle
  3. 依赖倒转原则 Dependence Inversion Principle
  4. 接口隔离原则 Interface Segregation Principle
  5. 最少知道法则 Demeter Principle
  6. 合成复用法则 Composite Reuse Principle

About

全部《设计模式》详细整理, Java版本

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages