We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fef18f commit 40e5444Copy full SHA for 40e5444
3 files changed
iterator/src/main/java/com/iluwatar/App.java
@@ -1,5 +1,12 @@
1
package com.iluwatar;
2
3
+/**
4
+ *
5
+ * Iterator (ItemIterator) adds abstraction layer on top of a
6
+ * collection (TreasureChest). This way the collection can change
7
+ * its internal implementation without affecting its clients.
8
9
+ */
10
public class App
11
{
12
public static void main( String[] args )
iterator/src/main/java/com/iluwatar/ItemIterator.java
@@ -1,5 +1,10 @@
+ * Iterator interface.
public interface ItemIterator {
boolean hasNext();
iterator/src/main/java/com/iluwatar/TreasureChest.java
@@ -3,6 +3,11 @@
import java.util.ArrayList;
import java.util.List;
+ * Collection class.
public class TreasureChest {
13
private List<Item> items;
0 commit comments