public class MultiDimensionalIterator
extends java.lang.Object
implements java.util.Iterator
Iterator that iterates over a delegate, which produces
arrays, Collections, Enumerations or
Iterators. This Iterator returns the
elements of these objects.
The count of dimensions is declared at construction. Count "1" produces an
Iterator that adds no functionality to its delegate, count
"2" produces an Iterator that behaves as explained above, and so
forth.
| Constructor and Description |
|---|
MultiDimensionalIterator(java.util.Iterator delegate,
int dimensionCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
public MultiDimensionalIterator(java.util.Iterator delegate,
int dimensionCount)
public boolean hasNext()
hasNext in interface java.util.IteratorUniterableElementExceptionpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator