Posts Tagged Iterator Design Pattern
Iterator Design Pattern
Posted by Bharat Sharma in behavioural design patterns, Core Java on March 8, 2020
Iterator Pattern is a Behavioural Design Pattern. The intent of Interator pattern is to provide a way to sequentially taverse over a data structure without exposing underlying data structure. Java’s Iterator is a good implementation of this pattern and allows us to traverse over underlying collection in a sequential way. A collection creates an Iterator […]