X Tutup
Skip to content

Commit 52df337

Browse files
committed
Update README.md
1 parent 4cddcd8 commit 52df337

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@
159159
##Iterator
160160
**Intent:** Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
161161

162+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/iterator/etc/iterator.jpg "Iterator")
163+
164+
**Applicability:** Use the Iterator pattern
165+
* to access an aggregate object's contents without exposing its internal representation
166+
* to support multiple traversals of aggregate objects
167+
* to provide a uniform interface for traversing different aggregate structures
168+
162169
##Mediator
163170
**Intent:** Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
164171

0 commit comments

Comments
 (0)
X Tutup