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>AnIteratorthat traverses aCollectionofIterators,Collections 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 booleanhasNext()Tnext()voidremove()
-
-
-
Constructor Detail
-
MultiIterator
public MultiIterator(java.util.Iterator<T>[] iterators)
- Parameters:
iterators- An array ofIterators
-
MultiIterator
public MultiIterator(java.util.Collection<T>[] collections)
- Parameters:
collections- An array ofCollections
-
MultiIterator
public MultiIterator(java.lang.Object[][] arrays)
- Parameters:
arrays- An array of arrays
-
MultiIterator
public MultiIterator(java.util.Collection<?> collection)
- Parameters:
collection- ACollectionofCollections,Iterators and/or arrays
-
MultiIterator
public MultiIterator(java.util.Iterator<?> iterator)
- Parameters:
iterator- An iterator overCollections,Iterators and/or arrays
-
MultiIterator
public MultiIterator(java.lang.Object[] array)
- Parameters:
array- An array ofCollections,Iterators 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.
-
-