File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Question about Iterator Pattern ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Question about Iterator Pattern ?" Watch "Question about Iterator Pattern ?" New topic
Author

Question about Iterator Pattern ?

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
Multiple iterators can retraversal the same collection simultaneously ?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
yes. That's the point of iterators.
Some old designs build the traversal into the collection itself, but that limits it to only one client iterating through it at once.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
I can say that:
Does Iterator design pattern suport traversing the same collection in diferente order ?
and
Does Iterator design pattern performance task to each object in the collection ?
thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question about Iterator Pattern ?