设计模式(java源码实现)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
267 B

4 years ago
# 迭代模式
5 years ago
模型:行为模型
5 years ago
思想:
4 years ago
* 将遍历和实现分开,降低耦合
* 遍历iterator,可扩展。比如可以实现顺序遍历,又可以另外实现倒序遍历。这样的修改对实现改动小
* 实现的修改,对遍历影响小.