Package dsa.lab02.base
Class StaticSequence.ForwardIterator<Item>
java.lang.Object
dsa.lab02.base.StaticSequence.ForwardIterator<Item>
- Type Parameters:
Item
- the item type
- All Implemented Interfaces:
Iterator<Item>
- Enclosing interface:
StaticSequence<Item>
A forward iterator over the items in a sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionForwardIterator
(StaticSequence<Item> sequence) Construct a forward iterator over the items in the given sequence. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ForwardIterator
Construct a forward iterator over the items in the given sequence.- Parameters:
sequence
- the sequence
-
-
Method Details