We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44d7be9 commit e4ff39eCopy full SHA for e4ff39e
1 file changed
iterator/src/main/java/com/iluwatar/iterator/App.java
@@ -2,9 +2,13 @@
2
3
/**
4
*
5
- * Iterator ({@link ItemIterator}) adds abstraction layer on top of a collection
6
- * ({@link TreasureChest}). This way the collection can change its internal
7
- * 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.
8
+ * <p>
9
+ * In this example the Iterator ({@link ItemIterator}) adds abstraction layer on
10
+ * top of a collection ({@link TreasureChest}). This way the collection can change
11
+ * its internal implementation without affecting its clients.
12
13
*/
14
public class App {
0 commit comments