Package Behavioral.Iterator
Interface Aggregate<T>
- Type Parameters:
T- The type of elements in the collection.
- All Known Implementing Classes:
ConcreteAggregate
public interface Aggregate<T>
Interface for creating iterators.
Provides a method to retrieve an iterator for a collection.
-
Method Summary
Modifier and TypeMethodDescriptionCreate an iterator for the collection.
-
Method Details
-
createIterator
Create an iterator for the collection.- Returns:
- An iterator for the collection.
-