Class MultiIterator<T>
- java.lang.Object
-
- org.codehaus.commons.compiler.util.iterator.MultiIterator<T>
-
-
Constructor Summary
Constructors Constructor Description MultiIterator(Object[] array)MultiIterator(Object[][] arrays)MultiIterator(Object object, Collection<T> collection)Iterates over the givenCollection, prepended with the givenObject.MultiIterator(Object prefix, Iterator<T> iterator)Iterates over the givenIterator, prepended with the given prefix.MultiIterator(Collection<?> collection)MultiIterator(Collection<T>[] collections)MultiIterator(Collection<T> collection, Object object)Iterates over the givenCollection, appended with the givenObject.MultiIterator(Iterator<?> iterator)MultiIterator(Iterator<T>[] iterators)MultiIterator(Iterator<T> iterator, 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()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
MultiIterator
public MultiIterator(Iterator<T>[] iterators)
- Parameters:
iterators- An array ofIterators
-
MultiIterator
public MultiIterator(Collection<T>[] collections)
- Parameters:
collections- An array ofCollections
-
MultiIterator
public MultiIterator(Object[][] arrays)
- Parameters:
arrays- An array of arrays
-
MultiIterator
public MultiIterator(Collection<?> collection)
- Parameters:
collection- ACollectionofCollections,Iterators and/or arrays
-
MultiIterator
public MultiIterator(Iterator<?> iterator)
- Parameters:
iterator- An iterator overCollections,Iterators and/or arrays
-
MultiIterator
public MultiIterator(Object[] array)
- Parameters:
array- An array ofCollections,Iterators and/or arrays
-
MultiIterator
public MultiIterator(Object object, Collection<T> collection)
Iterates over the givenCollection, prepended with the givenObject.
-
MultiIterator
public MultiIterator(Collection<T> collection, Object object)
Iterates over the givenCollection, appended with the givenObject.
-
MultiIterator
public MultiIterator(Object prefix, Iterator<T> iterator)
Iterates over the givenIterator, prepended with the given prefix.
-
-