Package Behavioral.Iterator
Class ConcreteIterator<T>
java.lang.Object
Behavioral.Iterator.ConcreteIterator<T>
- Type Parameters:
T- The type of elements in the collection.
- All Implemented Interfaces:
Iterator<T>
Concrete Iterator for traversing a collection.
Implements the Iterator interface and provides traversal logic.
-
Constructor Summary
ConstructorsConstructorDescriptionConcreteIterator(List<T> collection) Constructor initializes the iterator with a collection. -
Method Summary
-
Constructor Details
-
ConcreteIterator
Constructor initializes the iterator with a collection.- Parameters:
collection- The collection to iterate over.
-
-
Method Details