Class RangeIterator
- java.lang.Object
-
- adams.data.spreadsheet.cellfinder.RangeIterator
-
- All Implemented Interfaces:
Iterator<CellLocation>
public class RangeIterator extends Object implements Iterator<CellLocation>
Iterates over a range of cells.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description RangeIterator(int[] rows, int[] cols)
Initializes the iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns whether another cell location is available.CellLocation
next()
Returns the next cell location.void
remove()
Not supported.-
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns whether another cell location is available.- Specified by:
hasNext
in interfaceIterator<CellLocation>
- Returns:
- true if another is available
-
next
public CellLocation next()
Returns the next cell location.- Specified by:
next
in interfaceIterator<CellLocation>
- Returns:
- the cell location
-
remove
public void remove()
Not supported.- Specified by:
remove
in interfaceIterator<CellLocation>
-
-