T
- the item type.public interface Iterator<T>
Iterator
is a generic iterator interface.Modifier and Type | Method and Description |
---|---|
Iterator<T> |
clone()
Creates a copy of the iterator.
|
boolean |
hasValue()
Checks if the iterator is not exhausted (a value is available).
|
void |
init()
Initializes the iterator.
|
void |
next()
Makes an iteration.
|
void |
stop()
Stops the iterator.
|
T |
value()
Returns the current value of the iterator.
|
void init()
boolean hasValue()
true
if the iterator is not exhausted; false
otherwise.T value()
void next()
void stop()