设计模式(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.
星期八 d511fd5054 删除class文件 5 years ago
..
src 项目初始化 5 years ago
README.md 删除class文件 5 years ago
pattern-iterator.iml 项目初始化 5 years ago
pom.xml 项目初始化 5 years ago

README.md

迭代模式

模型:行为模型

思想:

1. 将遍历和实现分开,降低耦合
2. 遍历iterator,可扩展。比如可以实现顺序遍历,又可以另外实现倒序遍历。这样的修改对实现改动小
3. 实现的修改,对遍历影响小.