|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.iterator.MergedIterator<E>
E
- Entry typepublic class MergedIterator<E>
Iterator that joins multiple existing iterators into one.
Field Summary | |
---|---|
(package private) Iterator<E> |
current
The iterator we are currently processing |
(package private) Iterator<Iterator<E>> |
iterators
All the iterators we process |
(package private) Iterator<E> |
last
The last iterator we returned an object for, for remove() |
Constructor Summary | |
---|---|
MergedIterator(Collection<Iterator<E>> iterators)
Auxillary constructor with Collections |
|
MergedIterator(Iterator<E>... iterators)
Auxillary constructor with arrays |
|
MergedIterator(Iterator<Iterator<E>> iterators)
Main constructor. |
Method Summary | |
---|---|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Iterator<Iterator<E>> iterators
Iterator<E> current
Iterator<E> last
Constructor Detail |
---|
public MergedIterator(Iterator<Iterator<E>> iterators)
iterators
- Iteratorspublic MergedIterator(Collection<Iterator<E>> iterators)
iterators
- Iteratorspublic MergedIterator(Iterator<E>... iterators)
iterators
- IteratorsMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<E>
public E next()
next
in interface Iterator<E>
public void remove()
remove
in interface Iterator<E>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |