BENEFITS: • IT Supports Variations in The Traversal of A Collection. • It Simplifies The Interface to the Collection.
Applicable Scenarios: • Access to a collection object is required without having to expose its internal representation • Multiple traversals of objects need to be supported in the collection • A universal interface for traversing different structures needs to be provided in the collection...