File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
设计模式分为三种类型,共23种:
5
5
6
6
- ** 创建型模式** :[ 单例模式] ( https://github.com/youlookwhat/DesignPattern#3-单例设计模式 ) 、[ 抽象工厂模式] ( https://github.com/youlookwhat/DesignPattern#2-工厂模式 ) 、[ 建造者模式] ( https://github.com/youlookwhat/DesignPattern#11-建造者模式 ) 、[ 工厂模式] ( https://github.com/youlookwhat/DesignPattern#2-工厂模式 ) 、[ 原型模式] ( https://github.com/youlookwhat/DesignPattern#12-原型模式 ) 。
7
- - ** 结构型模式** :[ 适配器模式] ( https://github.com/youlookwhat/DesignPattern#5-适配器模式 ) 、桥接模式、[ 装饰模式] ( https://github.com/youlookwhat/DesignPattern#7-装饰者模式 ) 、组合模式、[ 外观模式] ( https://github.com/youlookwhat/DesignPattern#8-外观模式 ) 、[ 享元模式] ( https://github.com/youlookwhat/DesignPattern#13-享元模式 ) 、[ 代理模式] ( https://github.com/youlookwhat/DesignPattern#14-代理模式 ) 。
7
+ - ** 结构型模式** :[ 适配器模式] ( https://github.com/youlookwhat/DesignPattern#5-适配器模式 ) 、[ 桥接模式] ( https://github.com/youlookwhat/DesignPattern#15-桥接模式 ) 、[ 装饰模式] ( https://github.com/youlookwhat/DesignPattern#7-装饰者模式 ) 、组合模式、[ 外观模式] ( https://github.com/youlookwhat/DesignPattern#8-外观模式 ) 、[ 享元模式] ( https://github.com/youlookwhat/DesignPattern#13-享元模式 ) 、[ 代理模式] ( https://github.com/youlookwhat/DesignPattern#14-代理模式 ) 。
8
8
- ** 行为型模式** :[ 模版方法模式] ( https://github.com/youlookwhat/DesignPattern#9-模板方法模式 ) 、[ 命令模式] ( https://github.com/youlookwhat/DesignPattern#6-命令模式 ) 、迭代器模式、[ 观察者模式] ( https://github.com/youlookwhat/DesignPattern#1-观察者模式 ) 、中介者模式、备忘录模式、解释器模式、[ 状态模式] ( https://github.com/youlookwhat/DesignPattern#10-状态模式 ) 、[ 策略模式] ( https://github.com/youlookwhat/DesignPattern#4-策略模式 ) 、职责链模式(责任链模式)、访问者模式。
9
9
10
10
> 参照Hongyang、菜鸟教程、极客学院等文章所写。如有错误欢迎指正,如有侵权,请联系我删除。
42
42
43
43
- 14.[ 设计模式 代理模式(Proxy Pattern) 以获取磁盘中的图片为例] ( https://www.runoob.com/design-pattern/proxy-pattern.html )
44
44
45
+ - 15.[ 设计模式 桥接模式(Bridge Pattern) 以画不同颜色的圆为例] ( https://www.runoob.com/design-pattern/bridge-pattern.html )
46
+
45
47
46
48
## Source Code
47
49
> - 1 . [ Observer] ( https://github.com/youlookwhat/DesignPattern/tree/master/app/src/main/java/com/example/jingbin/designpattern/observer )
58
60
> - 12 . [ Prototype] ( https://github.com/youlookwhat/DesignPattern/tree/master/app/src/main/java/com/example/jingbin/designpattern/prototype )
59
61
> - 13 . [ Flyweight] ( https://github.com/youlookwhat/DesignPattern/tree/master/app/src/main/java/com/example/jingbin/designpattern/flyweight )
60
62
> - 14 . [ Proxy] ( https://github.com/youlookwhat/DesignPattern/tree/master/app/src/main/java/com/example/jingbin/designpattern/proxy )
63
+ > - 15 . [ Bridge] ( https://github.com/youlookwhat/DesignPattern/tree/master/app/src/main/java/com/example/jingbin/designpattern/bridge )
61
64
62
65
## Project Picture
63
66
777
780
image.display();
778
781
```
779
782
783
+ ### 15. 桥接模式
784
+ > 桥接(Bridge)是用于把抽象化与实现化解耦,使得二者可以独立变化。这种类型的设计模式属于结构型模式,它通过提供抽象化和实现化之间的桥接结构,来实现二者的解耦。
780
785
781
786
## Download
782
787
- [ DesignPattern.apk] ( http://download.csdn.net/detail/jingbin_/9684545 )
You can’t perform that action at this time.
0 commit comments