|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcon.data.DovetailMultiIterator
public class DovetailMultiIterator
An enumeration that traverses an ordered set of sub-enumerations in breadthwise, round-robin manner. Iterators which empty are removed from the set.
| Constructor Summary | |
|---|---|
DovetailMultiIterator()
Creates a new, empty DovetailMultiIterator. |
|
DovetailMultiIterator(java.util.Iterator a,
java.util.Iterator b)
Creates a new DovetailMultiIterator based on two enumerations |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DovetailMultiIterator()
public DovetailMultiIterator(java.util.Iterator a,
java.util.Iterator b)
| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||