1. 什么是迭代器模式
迭代器模式提供一种方法顺序访问一个聚合对象中的各个元素,而又不暴露其内部的表示.
2. 示例UML图
3. 示例代码地址
https://github.com/ganlu19940318/Head-First/tree/master/Iterator%20Pattern
4. 参考链接
<< Head First 设计模式 >>
记录学习点滴
迭代器模式提供一种方法顺序访问一个聚合对象中的各个元素,而又不暴露其内部的表示.
https://github.com/ganlu19940318/Head-First/tree/master/Iterator%20Pattern
<< Head First 设计模式 >>
打赏