Skip to content

Commit 94bd89f

Browse files
authored
Update README.md
1 parent 176e8f1 commit 94bd89f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# What is Interpreter Design Pattern
2-
Interpreter pattern provides a way to evaluate language grammar or expression.
2+
Iterator Design Pattern enables to get a way to access the elements of a collection object in sequential manner without any need to know its underlying representation.
33

44
## Diagram
55
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/iterator-pattern/diagrams/Iterator%20Design%20Pattern%20class%20diagram.jpeg "Diagram")
66

77
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/iterator-pattern/diagrams/IteratorPatternSequenceDiagram.png "Diagram")
88

99
### When to use Interpreter Design Pattern
10-
Specialized database query languages such as SQL.
11-
Specialized computer languages that are often used to describe communication protocols.
12-
Voice command based apps
10+
* When there is a need to take the responsibility for access and traversal out of the aggregate / collection object and define a standard traversal protocol.
11+
* Iterator pattern is widely used in Java Collection Framework.
1312

1413
### Learn Design Patterns with Java by Aseem Jain
1514
This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain".

0 commit comments

Comments
 (0)