Figure 3 shows a class diagram of the iterator pattern.
图3显示了迭代器模式的类图。
The iterator pattern provides a way to encapsulate looping through a collection or array of objects.
迭代器模式将提供一种通过对象集合或对象数组封装迭代的方法。
The Composite pattern can be used to implement the composite service that encompasses other subservices, whereas the Iterator pattern can be used to implement the traversal of subservices.
Composite模式可用于实现包含其他子服务的组合服务,而Iterator 模式可用于实现子服务的遍历。
The Composite pattern can be used to implement the composite service that encompasses other subservices, whereas the Iterator pattern can be used to implement the traversal of subservices.
Composite模式可用于实现包含其他子服务的组合服务,而Iterator 模式可用于实现子服务的遍历。
应用推荐