public class ChainedIterator<T> extends java.lang.Object implements DisposableIterator<T>
EMPTY_DISPOSABLE_ITERATOR
Constructor and Description |
---|
ChainedIterator(java.util.Iterator<T>... iterators) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
int |
getCurrent() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
public ChainedIterator(java.util.Iterator<T>... iterators)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public int getCurrent()