public class SequentialMultiIterator extends java.lang.Object implements MultiIterator
| Constructor and Description |
|---|
SequentialMultiIterator()
Creates a new SequentialMultiIterator
|
SequentialMultiIterator(java.util.Iterator a,
java.util.Iterator b)
Creates a new SequentialMultiIterator based on two enumerations
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.Iterator newEnum)
Adds an enumeration to the end of the SequentialMultiIterator.
|
boolean |
hasNext()
Returns true if the enumeration contains more elements; false if its
empty.
|
java.lang.Object |
next()
Returns the next element of the enumeration.
|
void |
remove() |
public SequentialMultiIterator()
public SequentialMultiIterator(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