mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-15 02:16:54 +00:00
Update README.md
This commit is contained in:
1 parent
4cddcd8b05
commit
52df33782a
1 file changed
+7
@@ -159,6 +159,13 @@
|
|||||||
##Iterator
|
##Iterator
|
||||||
**Intent:** Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
|
**Intent:** Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**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
|
##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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user