# What is Iterator Design Pattern 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. ## Diagram ![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/iterator-pattern/diagrams/Iterator%20Design%20Pattern%20class%20diagram.jpeg "Diagram") ![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/iterator-pattern/diagrams/IteratorPatternSequenceDiagram.png "Diagram") ### When to use Iterator Design Pattern * 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. * Iterator pattern is widely used in Java Collection Framework. ### Learn Design Patterns with Java by Aseem Jain This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain". ### Course link: https://www.packtpub.com/application-development/learn-design-patterns-java-9-video ### ![ http://in.linkedin.com/in/premaseem](https://github.com/premaseem/DesignPatternsJava9/blob/master/linkedin.png "http://in.linkedin.com/in/premaseem") Profile: http://in.linkedin.com/in/premaseem ### Authors blog on design patterns: https://premaseem.wordpress.com/category/computers/design-patterns/ ### Software Design pattern community face book page: https://www.facebook.com/DesignPatternGuru/ ### Note: * This code base will work on Java 9 and above versions. * `diagrams` folders carry UML diagrams. * `pattern` folder has code of primary example. * `patternBonus` folder has code of secondary or bonus example.