public class SerialMultiDataIterator extends Object implements MultiDataIterator
Note, this implementation assumes that hasNext()
is called before next()
is called.
And that next()
is called only when hasNext()
returns true
.
Constructor and Description |
---|
SerialMultiDataIterator(DataIterator... iterators) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Clean up after any resources associated with this iterator
The iterator can be closed even if the iterator wasn't iterated over all of its elements.
|
boolean |
hasNext() |
DataIterator[] |
iterators()
Returns the underlying iterators.
|
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SerialMultiDataIterator(DataIterator... iterators)
public DataIterator[] iterators()
MultiDataIterator
iterators
in interface MultiDataIterator
public void close()
DataIterator
close
in interface DataIterator
Copyright © GigaSpaces.