- Provide a way to move through a list of collection or aggregated objects
without knowing its internal representations.
Where to use ?
- Use a standard iterator built in each standard collection, like List, Sort, or Map
- Need to distinguish variations in the traversal of an aggregate
- Similar to Enumeration class, but more effective
- Need to filter out some info from an aggregated collection
No comments:
Post a Comment
Note: only a member of this blog may post a comment.