Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 497 Bytes

README.md

File metadata and controls

11 lines (11 loc) · 497 Bytes

Iterator Pattern

Type

The Iterator Pattern is a behavioral pattern.

Description

The iterator design pattern gives you the ability to use different types of iterators to iterate through different types of complex data structures.

Use

  1. When you want to use x types of iterators to loop through a complex data structure.

Prevent

  1. From exposing the iteration its internal implementation (see Main.java).

References

  1. https://refactoring.guru/design-patterns/iterator