Iterator

xiaoxiao2021-03-06  56

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...

转载请注明原文地址:https://www.9cbs.com/read-117831.html

New Post(0)