/android_design_patterns

23种常用的设计模式

Primary LanguageJava

DesignPattern

####Java 23种设计模式

设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。

设计模式分为三种类型,共23种:

  • 构建型模式:单例模式、工厂模式、建造者模式、原型模式。
  • 结构型模式:适配器模式、适配器模、桥接模式、装饰者模式、组合模式、外观模式、享元模式、代理模式。
  • 行为型模式:模版方法模式、命令模式、迭代器模式、中介者模式、备忘录模式、解释器模式、状态模式、策略模式、职责链模式(责任链模式)、访问者模式。

目录

  1. 构建模式

Builder (创建者) https://blog.csdn.net/hp910315/article/details/49405311

Factory Method (工厂模式) https://blog.csdn.net/wu371894545/article/details/53811148

Prototype (原型模式) https://blog.csdn.net/self_study/article/details/51757525

Singleton (单例模式) https://blog.csdn.net/wu371894545/article/details/53835834

  1. 结构模式

Adapter (适配器) https://blog.csdn.net/wu371894545/article/details/53883520

Bridge (桥接模式) https://blog.csdn.net/self_study/article/details/51622243

Composite (组合模式) https://blog.csdn.net/self_study/article/details/51761709

Decorator (装饰模式) https://blog.csdn.net/wu371894545/article/details/53792180

Facade (外观模式) https://blog.csdn.net/wu371894545/article/details/53883952

Flyweight (享元模式) https://blog.csdn.net/self_study/article/details/51870660

Proxy (代理模式) https://blog.csdn.net/self_study/article/details/51628486

  1. 行为模式

Chain of Responsibility (职责链模式)https://blog.csdn.net/self_study/article/details/52012370

Command (命令模式) https://blog.csdn.net/wu371894545/article/details/53889429

Interpreter (解释器模式) https://blog.csdn.net/self_study/article/details/52737559

Iterator(迭代器模式) https://blog.csdn.net/self_study/article/details/52502709

Mediator(中介者模式) https://blog.csdn.net/self_study/article/details/52344610

Memento(备忘录模式) https://blog.csdn.net/self_study/article/details/52561728

Observer(观察者模式) https://blog.csdn.net/wu371894545/article/details/53781846

State(状态模式) https://blog.csdn.net/wu371894545/article/details/53884258

Strategy (策略模式) https://blog.csdn.net/wu371894545/article/details/53763164

Template Method (模板方法) https://blog.csdn.net/wu371894545/article/details/53883827

Visitor(访问者模式) https://blog.csdn.net/self_study/article/details/52778713

Thanks