The iterator pattern provides a way to encapsulate looping through a collection or array of objects.
迭代器模式将提供一种通过对象集合或对象数组封装迭代的方法。
Create an iterator to iterate through the collection.
创建一个迭代器,以便通过集合进行迭代。
Even as objects get added to the collection, the original Iterator can proceed, working through the items in the original collection.
即使对象加入到了集合中,原来的Iterator也可以进行,继续遍历原来集合中的项。
应用推荐