|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.util.CompositeSortedIterator<E>
E - public class CompositeSortedIterator<E>
Composite of multiple Iterators that returns the next from a series of all component Iterators based on Comparator constructor argument.
| Constructor Summary | |
|---|---|
CompositeSortedIterator(java.util.Comparator<E> comparator)
|
|
| Method Summary | |
|---|---|
void |
addComponent(java.util.Iterator<E> itr)
|
void |
close()
|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeSortedIterator(java.util.Comparator<E> comparator)
comparator - Comparator to use for sorting order| Method Detail |
|---|
public void addComponent(java.util.Iterator<E> itr)
itr - Iterator which is a component of this compositepublic boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||