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 booleanhasNext()Returns whether another cell location is available.CellLocationnext()Returns the next cell location.voidremove()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:
hasNextin interfaceIterator<CellLocation>- Returns:
- true if another is available
-
next
public CellLocation next()
Returns the next cell location.- Specified by:
nextin interfaceIterator<CellLocation>- Returns:
- the cell location
-
remove
public void remove()
Not supported.- Specified by:
removein interfaceIterator<CellLocation>
-
-