After getting introduced to Design Patterns we have so far examined the following patterns:
- Adapter Pattern
- Facade pattern
- Composite Pattern
- Bridge Pattern
- Singleton Pattern
- Observer Pattern
- Proxy Pattern
- Chain of Responsibility Pattern
- Flyweight Pattern
- Builder Pattern
- Factory Method Pattern
- Abstract Factory Design Pattern
- Prototype Design Pattern
- Memento Design Pattern
- Template Design Pattern
- State Design Pattern
- Strategy Design Pattern
- Command Design Pattern
- Interpreter Design Pattern
- Decorator Design Pattern
Now, we will now get to know the Iterator Design Pattern.
The intent of the Iterator Design Pattern is to provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. he Iterator pattern allows a client object to access the contents of a container in a sequential manner, without having any knowledge about the internal representation of its contents.
Via a real life example, you will learn how and when the Iterator design pattern should be used and how to structure your code in order to implement it. You will see how it can lead to elegant solutions to code problems.
from Java Code Geeks http://academy.javacodegeeks.com/news/iterator-design-pattern/
No comments:
Post a Comment