Class MultiIterator<T>
- java.lang.Object
-
- org.codehaus.commons.compiler.util.iterator.MultiIterator<T>
-
- Type Parameters:
T
- The element type of the iterator
- All Implemented Interfaces:
java.util.Iterator<T>
public class MultiIterator<T> extends java.lang.Object implements java.util.Iterator<T>
AnIterator
that traverses aCollection
ofIterator
s,Collection
s and/or arrays.
-
-
Constructor Summary
Constructors Constructor Description MultiIterator(java.lang.Object[] array)
MultiIterator(java.lang.Object[][] arrays)
MultiIterator(java.lang.Object object, java.util.Collection<T> collection)
Iterates over the givenCollection
, prepended with the givenObject
.MultiIterator(java.lang.Object prefix, java.util.Iterator<T> iterator)
Iterates over the givenIterator
, prepended with the given prefix.MultiIterator(java.util.Collection<?> collection)
MultiIterator(java.util.Collection<T>[] collections)
MultiIterator(java.util.Collection<T> collection, java.lang.Object object)
Iterates over the givenCollection
, appended with the givenObject
.MultiIterator(java.util.Iterator<?> iterator)
MultiIterator(java.util.Iterator<T>[] iterators)
MultiIterator(java.util.Iterator<T> iterator, java.lang.Object suffix)
Iterates over the givenIterator
, appended with the givensuffix
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
-
-
-
Constructor Detail
-
MultiIterator
public MultiIterator(java.util.Iterator<T>[] iterators)
- Parameters:
iterators
- An array ofIterator
s
-
MultiIterator
public MultiIterator(java.util.Collection<T>[] collections)
- Parameters:
collections
- An array ofCollection
s
-
MultiIterator
public MultiIterator(java.lang.Object[][] arrays)
- Parameters:
arrays
- An array of arrays
-
MultiIterator
public MultiIterator(java.util.Collection<?> collection)
- Parameters:
collection
- ACollection
ofCollection
s,Iterator
s and/or arrays
-
MultiIterator
public MultiIterator(java.util.Iterator<?> iterator)
- Parameters:
iterator
- An iterator overCollection
s,Iterator
s and/or arrays
-
MultiIterator
public MultiIterator(java.lang.Object[] array)
- Parameters:
array
- An array ofCollection
s,Iterator
s and/or arrays
-
MultiIterator
public MultiIterator(java.lang.Object object, java.util.Collection<T> collection)
Iterates over the givenCollection
, prepended with the givenObject
.
-
MultiIterator
public MultiIterator(java.util.Collection<T> collection, java.lang.Object object)
Iterates over the givenCollection
, appended with the givenObject
.
-
MultiIterator
public MultiIterator(java.lang.Object prefix, java.util.Iterator<T> iterator)
Iterates over the givenIterator
, prepended with the given prefix.
-
MultiIterator
public MultiIterator(java.util.Iterator<T> iterator, java.lang.Object suffix)
Iterates over the givenIterator
, appended with the givensuffix
.
-
-