From 52df33782a925fd17275cedc41862ba29413def1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 24 Aug 2014 22:27:47 +0300 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9960d4f19..089f66166 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,13 @@ ##Iterator **Intent:** Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. +![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/iterator/etc/iterator.jpg "Iterator") + +**Applicability:** Use the Iterator pattern +* to access an aggregate object's contents without exposing its internal representation +* to support multiple traversals of aggregate objects +* to provide a uniform interface for traversing different aggregate structures + ##Mediator **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.