Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
The essence of this pattern is that when implemented correctly, you can easily iterate through a collection of complex objects in a uniform manner (ie. IEnumerator, IEnumerable in .NET) without having to know the details of the type of object in the collection.
Reference: https://www.google.com/searchq=iterator+pattern+defined&oq=iterator+pattern+defined
The essence of this pattern is that when implemented correctly, you can easily iterate through a collection of complex objects in a uniform manner (ie. IEnumerator, IEnumerable in .NET) without having to know the details of the type of object in the collection.
Reference: https://www.google.com/searchq=iterator+pattern+defined&oq=iterator+pattern+defined
No comments:
Post a Comment