Package org.codehaus.janino.util
Class MultiIterator
- java.lang.Object
-
- org.codehaus.janino.util.MultiIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class MultiIterator extends java.lang.Object implements java.util.Iterator
AnIterator
that traverses aCollection
ofIterator
s.
-
-
Constructor Summary
Constructors Constructor Description MultiIterator(java.lang.Object[] array)
MultiIterator(java.lang.Object[][] arrays)
MultiIterator(java.lang.Object object, java.util.Collection collection)
Iterates over the givenCollection
, prepended with the givenObject
.MultiIterator(java.lang.Object prefix, java.util.Iterator iterator)
Iterates over the givenIterator
, prepended with the givenprefix
.MultiIterator(java.util.Collection collection)
MultiIterator(java.util.Collection[] collections)
MultiIterator(java.util.Collection collection, java.lang.Object object)
Iterates over the givenCollection
, appended with the givenObject
.MultiIterator(java.util.Iterator iterator)
MultiIterator(java.util.Iterator[] iterators)
MultiIterator(java.util.Iterator 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()
java.lang.Object
next()
void
remove()
-
-
-
Constructor Detail
-
MultiIterator
public MultiIterator(java.util.Iterator[] iterators)
- Parameters:
iterators
- An array ofIterator
s
-
MultiIterator
public MultiIterator(java.util.Collection[] 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 collection)
Iterates over the givenCollection
, prepended with the givenObject
.
-
MultiIterator
public MultiIterator(java.util.Collection collection, java.lang.Object object)
Iterates over the givenCollection
, appended with the givenObject
.
-
MultiIterator
public MultiIterator(java.lang.Object prefix, java.util.Iterator iterator)
Iterates over the givenIterator
, prepended with the givenprefix
.
-
MultiIterator
public MultiIterator(java.util.Iterator iterator, java.lang.Object suffix)
Iterates over the givenIterator
, appended with the givensuffix
.
-
-