Improve Iterator Javadoc

This commit is contained in:
Ilkka Seppala 2015-10-03 21:37:29 +03:00
parent 44d7be9c94
commit e4ff39e080

View File

@ -2,9 +2,13 @@ package com.iluwatar.iterator;
/** /**
* *
* Iterator ({@link ItemIterator}) adds abstraction layer on top of a collection * The Iterator pattern is a design pattern in which an iterator is used to
* ({@link TreasureChest}). This way the collection can change its internal * traverse a container and access the container's elements. The Iterator pattern
* implementation without affecting its clients. * decouples algorithms from containers.
* <p>
* 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 { public class App {