|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.util.MultiIterator<T>
T - The element type of the iteratorpublic class MultiIterator<T>
An Iterator that traverses a Collection of Iterators.
| Constructor Summary | |
|---|---|
MultiIterator(Collection<?> collection)
|
|
MultiIterator(Collection<T>[] collections)
|
|
MultiIterator(Collection<T> collection,
Object object)
Iterates over the given Collection, appended with the given Object. |
|
MultiIterator(Iterator<?> iterator)
|
|
MultiIterator(Iterator<T>[] iterators)
|
|
MultiIterator(Iterator<T> iterator,
Object suffix)
Iterates over the given Iterator, appended with the given suffix. |
|
MultiIterator(Object[] array)
|
|
MultiIterator(Object[][] arrays)
|
|
MultiIterator(Object object,
Collection<T> collection)
Iterates over the given Collection, prepended with the given Object. |
|
MultiIterator(Object prefix,
Iterator<T> iterator)
Iterates over the given Iterator, prepended with the given prefix. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiIterator(Iterator<T>[] iterators)
iterators - An array of Iteratorspublic MultiIterator(Collection<T>[] collections)
collections - An array of Collectionspublic MultiIterator(Object[][] arrays)
arrays - An array of arrayspublic MultiIterator(Collection<?> collection)
collection - A Collection of Collections, Iterators and/or arrayspublic MultiIterator(Iterator<?> iterator)
iterator - An iterator over Collections, Iterators and/or arrayspublic MultiIterator(Object[] array)
array - An array of Collections, Iterators and/or arrays
public MultiIterator(Object object,
Collection<T> collection)
Collection, prepended with the given Object.
public MultiIterator(Collection<T> collection,
Object object)
Collection, appended with the given Object.
public MultiIterator(Object prefix,
Iterator<T> iterator)
Iterator, prepended with the given prefix.
public MultiIterator(Iterator<T> iterator,
Object suffix)
Iterator, appended with the given suffix.
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<T>public T next()
next in interface Iterator<T>public void remove()
remove in interface Iterator<T>
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||