Improve Iterator Javadoc
This commit is contained in:
parent
44d7be9c94
commit
e4ff39e080
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user