Skip to content

Commit 9716459

Browse files
committed
Update 32.迭代器模式.md
1 parent 7116a0f commit 9716459

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

32.迭代器模式.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ public class ArrayListIterator {
5353
```
5454

5555
为了减少类文件和易于维护,我们通常把ArrayListIterator.java作为ArrayList的内部类,或者在ArrayList的iterator方法中世界采用匿名内部类,这里我们使用的外部类。
56+
57+
## 32.3 迭代器模式
58+
59+
**意图**:使用同一的方式遍历集合的哥哥元素,而无需暴露集合的内部结构。

0 commit comments

Comments
 (0)