Class ArrayEval

    • Method Detail

      • contains

        public boolean contains​(int row,
                                int col)
        Description copied from interface: AreaEval
        returns true if the cell at row and col specified as absolute indexes in the sheet is contained in this area.
        Specified by:
        contains in interface AreaEval
      • containsColumn

        public boolean containsColumn​(int col)
        Description copied from interface: AreaEval
        returns true if the specified col is in range
        Specified by:
        containsColumn in interface AreaEval
      • containsRow

        public boolean containsRow​(int row)
        Description copied from interface: AreaEval
        returns true if the specified row is in range
        Specified by:
        containsRow in interface AreaEval
      • getAbsoluteValue

        public ValueEval getAbsoluteValue​(int row,
                                          int col)
        Specified by:
        getAbsoluteValue in interface AreaEval
        Returns:
        the ValueEval from within this area at the specified row and col index. Never null (possibly BlankEval). The specified indexes should be absolute indexes in the sheet and not relative indexes within the area.
      • getFirstColumn

        public int getFirstColumn()
        Description copied from interface: AreaEval
        returns the 0-based index of the first col in this area.
        Specified by:
        getFirstColumn in interface AreaEval
      • getFirstRow

        public int getFirstRow()
        Description copied from interface: AreaEval
        returns the 0-based index of the first row in this area.
        Specified by:
        getFirstRow in interface AreaEval
      • getLastColumn

        public int getLastColumn()
        Description copied from interface: AreaEval
        returns the 0-based index of the last col in this area.
        Specified by:
        getLastColumn in interface AreaEval
      • getLastRow

        public int getLastRow()
        Description copied from interface: AreaEval
        returns the 0-based index of the last row in this area.
        Specified by:
        getLastRow in interface AreaEval
      • getRelativeValue

        public ValueEval getRelativeValue​(int r,
                                          int c)
        Specified by:
        getRelativeValue in interface AreaEval
        Returns:
        the ValueEval from within this area at the specified relativeRowIndex and relativeColumnIndex. Never null (possibly BlankEval). The specified indexes should relative to the top left corner of this area.
      • getNonEmptyCellValues

        public ValueEval getNonEmptyCellValues()
      • offset

        public AreaEval offset​(int relFirstRowIx,
                               int relLastRowIx,
                               int relFirstColIx,
                               int relLastColIx)
        Description copied from interface: AreaEval
        Creates an AreaEval offset by a relative amount from the upper left cell of this area
        Specified by:
        offset in interface AreaEval
      • getColumn

        public TwoDEval getColumn​(int columnIndex)
        Specified by:
        getColumn in interface TwoDEval
        Parameters:
        columnIndex - relative column index (zero based)
        Returns:
        a single column TwoDEval
      • getRow

        public TwoDEval getRow​(int rowIndex)
        Specified by:
        getRow in interface TwoDEval
        Parameters:
        rowIndex - relative row index (zero based)
        Returns:
        a single row TwoDEval
      • getValue

        public ValueEval getValue​(int rowIndex,
                                  int columnIndex)
        Specified by:
        getValue in interface TwoDEval
        Parameters:
        rowIndex - relative row index (zero based)
        columnIndex - relative column index (zero based)
        Returns:
        element at the specified row and column position
      • isColumn

        public boolean isColumn()
        Specified by:
        isColumn in interface TwoDEval
        Returns:
        true if the area has just a single column, this also includes the trivial case when the area has just a single cell.
      • isRow

        public boolean isRow()
        Specified by:
        isRow in interface TwoDEval
        Returns:
        true if the area has just a single row, this also includes the trivial case when the area has just a single cell.
      • isSubTotal

        public boolean isSubTotal​(int rowIndex,
                                  int columnIndex)
        Specified by:
        isSubTotal in interface TwoDEval
        Returns:
        true if the cell at row and col is a subtotal
      • isHidden

        public boolean isHidden​(int rowIndex,
                                int columnIndex)
        Specified by:
        isHidden in interface TwoDEval
        Returns:
        true if the cell at row and col is hidden
      • isRowHidden

        public boolean isRowHidden​(int rowIndex)
        Specified by:
        isRowHidden in interface TwoDEval
        Returns:
        true if the row is hidden
        See Also:
        Subtotal
      • isFiltered

        public boolean isFiltered()
        Specified by:
        isFiltered in interface TwoDEval
        Returns:
        true if the sheet of the area exists any auto filter or table filter which is applied.
        See Also:
        Subtotal
      • getValue

        public ValueEval getValue​(int sheetIndex,
                                  int rowIndex,
                                  int columnIndex)
        Specified by:
        getValue in interface ThreeDEval
        Parameters:
        sheetIndex - sheet index (zero based)
        rowIndex - relative row index (zero based)
        columnIndex - relative column index (zero based)
        Returns:
        element at the specified row and column position