File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about Iterator Pattern ?

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Multiple iterators can retraversal the same collection simultaneously ?
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic