Class 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)
    • Field Detail

      • m_Rows

        protected int[] m_Rows
        the row indices.
      • m_Columns

        protected int[] m_Columns
        the column indices.
      • m_Row

        protected int m_Row
        the current row (index).
      • m_Column

        protected int m_Column
        the current column (index).
    • Constructor Detail

      • RangeIterator

        public RangeIterator​(int[] rows,
                             int[] cols)
        Initializes the iterator.
        Parameters:
        rows - the row indices of the range
        cols - the column indices of the range