public class MultiIterator
extends java.lang.Object
implements java.util.Iterator
Iterator
that traverses a Collection
of
Iterator
s.Constructor and Description |
---|
MultiIterator(java.util.Collection collection) |
MultiIterator(java.util.Collection[] collections) |
MultiIterator(java.util.Collection collection,
java.lang.Object object)
Iterates over the given
Collection , appended with the given Object . |
MultiIterator(java.util.Iterator iterator) |
MultiIterator(java.util.Iterator[] iterators) |
MultiIterator(java.util.Iterator iterator,
java.lang.Object suffix)
Iterates over the given
Iterator , appended with the given suffix . |
MultiIterator(java.lang.Object[] array) |
MultiIterator(java.lang.Object[][] arrays) |
MultiIterator(java.lang.Object object,
java.util.Collection collection)
Iterates over the given
Collection , prepended with the given Object . |
MultiIterator(java.lang.Object prefix,
java.util.Iterator iterator)
Iterates over the given
Iterator , prepended with the given prefix . |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
public MultiIterator(java.util.Iterator[] iterators)
iterators
- An array of Iterator
spublic MultiIterator(java.util.Collection[] collections)
collections
- An array of Collection
spublic MultiIterator(java.lang.Object[][] arrays)
arrays
- An array of arrayspublic MultiIterator(java.util.Collection collection)
collection
- A Collection
of Collection
s, Iterator
s and/or arrayspublic MultiIterator(java.util.Iterator iterator)
iterator
- An iterator over Collection
s, Iterator
s and/or arrayspublic MultiIterator(java.lang.Object[] array)
array
- An array of Collection
s, Iterator
s and/or arrayspublic MultiIterator(java.lang.Object object, java.util.Collection collection)
Collection
, prepended with the given Object
.public MultiIterator(java.util.Collection collection, java.lang.Object object)
Collection
, appended with the given Object
.public MultiIterator(java.lang.Object prefix, java.util.Iterator iterator)
Iterator
, prepended with the given prefix
.public MultiIterator(java.util.Iterator iterator, java.lang.Object suffix)
Iterator
, appended with the given suffix
.