public class ObjectGrid2DIterator extends Object implements Iterator<Object>
ObjectGrid2D
.
This can act as a replacement for ObjectGrid2D.elements()
which will
create a new bag each time consuming a huge amount of memory if used on a
large grid. The iteration order is column-by-column, making the result
similar to the iterator of the bag from elements()
.
Constructor and Description |
---|
ObjectGrid2DIterator(ObjectGrid2D grid) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Object |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove