public class MultiDimensionalIterator
extends java.lang.Object
implements java.util.Iterator
Iterator
that iterates over a delegate, which produces
arrays, Collection
s, Enumeration
s or
Iterator
s. 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) |
public MultiDimensionalIterator(java.util.Iterator delegate, int dimensionCount)
public boolean hasNext()
hasNext
in interface java.util.Iterator
UniterableElementException
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
Copyright © 2001-2012. All Rights Reserved.