1.职责链模式(Chain of responisibility)
2.命令模式(Command)
3.解释器模式(Interpreter)
4.迭代器模式(Iterator)
5.观察者模式(Observer)
/ (rarely used in real world though)
6.策略模式(Strategy)
,
Collections#sort()
.
7.模板模式(Template Method)
, 里的
doXXX()
本文共 265 字,大约阅读时间需要 1 分钟。
2.命令模式(Command)
3.解释器模式(Interpreter)
4.迭代器模式(Iterator)
/ (rarely used in real world though)
, Collections#sort()
.
7.模板模式(Template Method)
, 里的 doXXX()
转载于:https://blog.51cto.com/simonwzing/1678314