mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 10:58:51 +00:00
Added comments for iterator example.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
package com.iluwatar;
|
||||
|
||||
/**
|
||||
*
|
||||
* Iterator (ItemIterator) adds abstraction layer on top of a
|
||||
* collection (TreasureChest). This way the collection can change
|
||||
* its internal implementation without affecting its clients.
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
|
||||
Reference in New Issue
Block a user