行为型模式-迭代器模式 http://blog.csdn.net/zhengzhb/article/details/7610745

菜鸟教程例子 http://www.runoob.com/design-pattern/iterator-pattern.html

1、访问一个聚合对象的内容而无须暴露它的内部表示。 2、需要为聚合对象提供多种遍历方式。 3、为遍历不同的聚合结构提供一个统一的接口。