|
JUtil | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.cscott.jutil.CombineIterator<E>
public class CombineIterator<E>
A CombineIterator
combines several different
Iterator
s into one.
Constructor Summary | |
---|---|
CombineIterator(Iterator<E> i1,
Iterator<E> i2)
Creates a CombineIterator from a pair of
Iterators. |
|
CombineIterator(Iterator<E> i1,
Iterator<E> i2,
Iterator<E> i3)
Creates a CombineIterator from three
Iterators. |
|
CombineIterator(Iterator<Iterator<E>> it)
Creates a CombineIterator from an
Iterator over Iterators. |
|
CombineIterator(List<Iterator<E>> itl)
Creates a CombineIterator from an array of Iterators. |
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 |
Constructor Detail |
---|
public CombineIterator(List<Iterator<E>> itl)
CombineIterator
from an array of Iterators.
public CombineIterator(Iterator<E> i1, Iterator<E> i2)
CombineIterator
from a pair of
Iterators.
public CombineIterator(Iterator<E> i1, Iterator<E> i2, Iterator<E> i3)
CombineIterator
from three
Iterators.
public CombineIterator(Iterator<Iterator<E>> it)
CombineIterator
from an
Iterator over Iterators.
Method Detail |
---|
public E next()
next
in interface Iterator<E>
public boolean hasNext()
hasNext
in interface Iterator<E>
public void remove()
remove
in interface Iterator<E>
|
JUtil | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |