Iterator Pattern
常見例句
- Figure 3 shows a class diagram of the iterator pattern.
圖 3 顯示了迭代器模式的類圖。 - Iterator is so common that it has ceased to be a formal pattern at all; it is just a feature of the language.
因?yàn)榈魈R娏?,所以它根本就算不上是正式的模式;它只是一種語言的特性。 - 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 模式可用于實(shí)現(xiàn)包含其他子服務(wù)的組合服務(wù),而 Iterator 模式可用于實(shí)現(xiàn)子服務(wù)的遍歷。 返回 Iterator Pattern