https://github.com/wongminho/java-design-pattern
📗 Java 23 种设计模式
https://github.com/wongminho/java-design-pattern
Last synced: over 1 year ago
JSON representation
📗 Java 23 种设计模式
- Host: GitHub
- URL: https://github.com/wongminho/java-design-pattern
- Owner: WongMinHo
- Created: 2021-06-05T14:42:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T14:48:03.000Z (about 5 years ago)
- Last Synced: 2025-01-10T20:48:24.039Z (over 1 year ago)
- Language: Java
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Design Pattern
设计模式(Design pattern)是一套被反复使用的、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了重用代码、让代码更容易被他人理解、保证代码可靠性。
设计模式分为三种类型,共23种:
### 创建型模式:
- 1.[ 设计模式 工厂模式(Factory Pattern)](http://blog.csdn.net/lmj623565791/article/details/24460585)
- 2.[ 设计模式 抽象工厂模式(Abstract Factory Pattern)](https://www.runoob.com/design-pattern/abstract-factory-pattern.html)
- 3.[ 设计模式 单例设计模式(Singleton Pattern)](http://blog.csdn.net/dmk877/article/details/50311791)
- 4.[ 设计模式 建造者模式(Builder Pattern)](https://www.runoob.com/design-pattern/builder-pattern.html)
- 5.[ 设计模式 原型模式(Prototype Pattern)](https://www.runoob.com/design-pattern/prototype-pattern.html)
### 结构型模式:
- 6.[ 设计模式 适配器模式(Adapter Pattern)](http://blog.csdn.net/lmj623565791/article/details/25833393)
- 7.[ 设计模式 桥接模式(Bridge Pattern)](https://www.runoob.com/design-pattern/bridge-pattern.html)
- 8.[ 设计模式 装饰器模式(Decorator Pattern)](http://blog.csdn.net/lmj623565791/article/details/24269409)
- 9.[ 设计模式 组合模式(Composite Pattern)](https://www.runoob.com/design-pattern/composite-pattern.html)
- 10.[ 设计模式 外观模式(Facade Pattern)](http://blog.csdn.net/lmj623565791/article/details/25837275)
- 11.[ 设计模式 享元模式(Flyweight Pattern)](https://www.runoob.com/design-pattern/flyweight-pattern.html)
- 12.[ 设计模式 代理模式(Proxy Pattern)](https://www.runoob.com/design-pattern/proxy-pattern.html)
### 行为型模式:
- 13.[ 设计模式 解释器模式(Interpreter Pattern)](https://www.runoob.com/design-pattern/interpreter-pattern.html)
- 14.[ 设计模式 状态模式(State Pattern)](http://blog.csdn.net/lmj623565791/article/details/26350617)
- 15.[ 设计模式 策略模式(Strategy Pattern)](http://blog.csdn.net/lmj623565791/article/details/24116745)
- 16.[ 设计模式 模版方法模式(Template Method Pattern)](http://blog.csdn.net/lmj623565791/article/details/26276093)
- 17.[ 设计模式 命令模式(Command Pattern)](http://blog.csdn.net/lmj623565791/article/details/24602057)
- 18.[ 设计模式 迭代器模式(Iterator Pattern)](https://www.runoob.com/design-pattern/iterator-pattern.html)
- 19.[ 设计模式 观察者模式(Observer Pattern)](http://blog.csdn.net/lmj623565791/article/details/24179699)
- 20.[ 设计模式 中介者模式(Mediator Pattern)](https://www.runoob.com/design-pattern/mediator-pattern.html)
- 21.[ 设计模式 备忘录模式(Memento Pattern)](https://www.runoob.com/design-pattern/memento-pattern.html)
- 22.[ 设计模式 责任链模式(Chain of Responsibility Pattern)](https://www.runoob.com/design-pattern/chain-of-responsibility-pattern.html)
- 23.[ 设计模式 访问者模式(Visitor Pattern)](https://www.runoob.com/design-pattern/visitor-pattern.html)
## Source Code
> - [Factory](https://github.com/WongMinHo/java-design-pattern/tree/master/factory-pattern)
> - [Abstract Factory](https://github.com/WongMinHo/java-design-pattern/tree/master/abstract-factory-pattern)
> - [Singleton](https://github.com/WongMinHo/java-design-pattern/tree/master/singleton-pattern)
> - [Builder](https://github.com/WongMinHo/java-design-pattern/tree/master/builder-pattern)
> - [Prototype](https://github.com/WongMinHo/java-design-pattern/tree/master/prototype-pattern)
> - [Adapter](https://github.com/WongMinHo/java-design-pattern/tree/master/adapter-pattern)
> - [Bridge](https://github.com/WongMinHo/java-design-pattern/tree/master/bridge-pattern)
> - [Decorator](https://github.com/WongMinHo/java-design-pattern/tree/master/decorator-pattern)
> - [Composite](https://github.com/WongMinHo/java-design-pattern/tree/master/composite-pattern)
> - [Facade](https://github.com/WongMinHo/java-design-pattern/tree/master/facade-pattern)
> - [Flyweight](https://github.com/WongMinHo/java-design-pattern/tree/master/flyweight-pattern)
> - [Proxy](https://github.com/WongMinHo/java-design-pattern/tree/master/proxy-pattern)
> - [Interpreter](https://github.com/WongMinHo/java-design-pattern/tree/master/interpreter-pattern)
> - [State](https://github.com/WongMinHo/java-design-pattern/tree/master/state-pattern)
> - [Strategy](https://github.com/WongMinHo/java-design-pattern/tree/master/strategy-pattern)
> - [Template Method](https://github.com/WongMinHo/java-design-pattern/tree/master/template-pattern)
> - [Iterator](https://github.com/WongMinHo/java-design-pattern/tree/master/iterator-pattern)
> - [Observer](https://github.com/WongMinHo/java-design-pattern/tree/master/observer-pattern)
> - [Mediator](https://github.com/WongMinHo/java-design-pattern/tree/master/mediator-pattern)
> - [Memento](https://github.com/WongMinHo/java-design-pattern/tree/master/memento-pattern)
> - [Chain of Responsibility](https://github.com/WongMinHo/java-design-pattern/tree/master/chain-pattern)
> - [Visitor](https://github.com/WongMinHo/java-design-pattern/tree/master/visitor-pattern)
## Reference
- [CSDN:张鸿洋](http://blog.csdn.net/lmj623565791/article/category/2206597)
- [菜鸟教程:设计模式](https://www.runoob.com/design-pattern/design-pattern-intro.html)