Skip to content

Commit e59ea13

Browse files
committed
Update 32.迭代器模式.md
1 parent 39d0945 commit e59ea13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

32.迭代器模式.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public class ArrayListIterator {
5757
## 32.3 迭代器模式
5858

5959
**意图**:使用统一的方式遍历集合的各个元素,而无需暴露集合的内部结构。
60+
6061
**使用场景**
6162
1、为聚合类统一遍历接口;
6263
2、需要为聚合类提供多种遍历方式,例如二叉树的前序遍历,中序遍历,后续遍历,层次遍历;
6364
3、访问聚合对象的内容而无需暴露其内部结构;
65+
6466
**类图**

0 commit comments

Comments
 (0)