Such is the case with the iterator pattern.
这个例子类似于迭代器模式。
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 模式可用于实现子服务的遍历。
Iterator is so common that it has ceased to be a formal pattern at all; it is just a feature of the language.
因为迭代器太常见了,所以它根本就算不上是正式的模式;它只是一种语言的特性。
Iterator is so common that it has ceased to be a formal pattern at all; it is just a feature of the language.
因为迭代器太常见了,所以它根本就算不上是正式的模式;它只是一种语言的特性。
应用推荐