图3显示了迭代器模式的类图。
这个例子类似于迭代器模式。
迭代器模式将提供一种通过对象集合或对象数组封装迭代的方法。
The iterator pattern provides a way to encapsulate looping through a collection or array of objects.
迭代器模式:提供一种方法顺序访问一个聚合对象中的各个元素,而又不暴露其内部的表示。
The Iterator Pattern:provides a way to access the elements of an aggregate object sequentially without exposing its underying representation.
因为迭代器太常见了,所以它根本就算不上是正式的模式;它只是一种语言的特性。
Iterator is so common that it has ceased to be a formal pattern at all; it is just a feature of the language.
在前面每个例子的基础上,对迭代器上进行了过滤和转换,从而展示这种代码模式可以立即在真实的世界中使用。
Filters and transforms on iterators build on each previous example to show code patterns that are immediately useful in the real world.
另一种在创建表时,处理添加的详细资料的好方法是,在迭代规划编辑器中打开Preview模式。
Another good way to deal with adding details while also building the list is to turn on the Preview mode in the iteration planning editor.
另一种在创建表时,处理添加的详细资料的好方法是,在迭代规划编辑器中打开Preview模式。
Another good way to deal with adding details while also building the list is to turn on the Preview mode in the iteration planning editor.
应用推荐