diff --git a/iterator/src/main/java/com/iluwatar/iterator/App.java b/iterator/src/main/java/com/iluwatar/iterator/App.java index 5b59cbcbc..b8ecfa42c 100644 --- a/iterator/src/main/java/com/iluwatar/iterator/App.java +++ b/iterator/src/main/java/com/iluwatar/iterator/App.java @@ -2,9 +2,13 @@ package com.iluwatar.iterator; /** * - * Iterator ({@link ItemIterator}) adds abstraction layer on top of a collection - * ({@link TreasureChest}). This way the collection can change its internal - * implementation without affecting its clients. + * The Iterator pattern is a design pattern in which an iterator is used to + * traverse a container and access the container's elements. The Iterator pattern + * decouples algorithms from containers. + *

+ * In this example the Iterator ({@link ItemIterator}) adds abstraction layer on + * top of a collection ({@link TreasureChest}). This way the collection can change + * its internal implementation without affecting its clients. * */ public class App {