内容へ移動
猫型iPS細胞研究所
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
INDEX
»
デザインパターン
»
01_Iterator:イテレーター
トレース:
デザインパターン:01_iterator
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 01_Iterator:イテレーター ====== <uml> title Iterator interface Aggregate{ createIterator() } interface Iterator{ +hasNext() +next() } class BookShelf{ createIterator(this) } class BookShelfIterator{ BookShelf +hasNext() +next() } Aggregate -> Iterator : Create Aggregate <|.. BookShelf Iterator <|.. BookShelfIterator BookShelf <-o BookShelfIterator </uml> ====== 概要====== BookShelfのcreateIteratorメソッドを使ってBookShelfIteratorを作成する。 その際、BookShelf自身を渡すことで、BookShelftとBookShelfIteratorは疎結合となっている。
デザインパターン/01_iterator.txt
· 最終更新: 2019/08/24 15:31 by
ips
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ