Thursday, January 1, 2015

Iterator Design Pattern

After getting introduced to Design Patterns we have so far examined the following patterns:



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.


Get started here






from Java Code Geeks http://academy.javacodegeeks.com/news/iterator-design-pattern/

No comments:

Post a Comment