public class DovetailMultiIterator extends java.lang.Object implements MultiIterator
| Constructor and Description |
|---|
DovetailMultiIterator()
Creates a new, empty DovetailMultiIterator.
|
DovetailMultiIterator(java.util.Iterator a,
java.util.Iterator b)
Creates a new DovetailMultiIterator based on two enumerations
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.Iterator newEnum)
Adds an enumeration to the end of the merge enumeration.
|
boolean |
hasNext()
Returns true if any elements are left in any of the sub-enumerations;
false if they're all empty.
|
java.lang.Object |
next()
Returns the next element of the enumeration.
|
void |
remove() |
public DovetailMultiIterator()
public DovetailMultiIterator(java.util.Iterator a,
java.util.Iterator b)
public void add(java.util.Iterator newEnum)
add in interface MultiIteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - If no more elements exist.public void remove()
remove in interface java.util.Iterator