Class PLCellRange

    • Constructor Detail

      • PLCellRange

        public PLCellRange​(int nFirstRow,
                           int nLastRow,
                           int nFirstCol,
                           int nLastCol)
        Default constructor
        Parameters:
        nFirstRow - First row index, inclusive.
        nLastRow - Last row index, inclusive.
        nFirstCol - First column index, inclusive.
        nLastCol - Last column index, inclusive.
      • PLCellRange

        public PLCellRange​(@Nonnull
                           IPLCellRange aOther)
        Copy constructor
        Parameters:
        aOther - The cell range to copy the values from. May not be null.
    • Method Detail

      • getFirstRow

        public int getFirstRow()
        Specified by:
        getFirstRow in interface IPLCellRange
        Returns:
        row number for the upper left hand corner
      • getLastRow

        public int getLastRow()
        Specified by:
        getLastRow in interface IPLCellRange
        Returns:
        row number for the lower right hand corner
      • getFirstColumn

        public int getFirstColumn()
        Specified by:
        getFirstColumn in interface IPLCellRange
        Returns:
        column number for the upper left hand corner
      • getLastColumn

        public int getLastColumn()
        Specified by:
        getLastColumn in interface IPLCellRange
        Returns:
        column number for the lower right hand corner
      • setFirstRow

        @Nonnull
        public final PLCellRange setFirstRow​(int nFirstRow)
        Parameters:
        nFirstRow - row number for the upper left hand corner
        Returns:
        this for chaining
      • setLastRow

        @Nonnull
        public final PLCellRange setLastRow​(int nLastRow)
        Parameters:
        nLastRow - row number for the lower right hand corner
        Returns:
        this for chaining
      • setFirstColumn

        @Nonnull
        public final PLCellRange setFirstColumn​(int nFirstCol)
        Parameters:
        nFirstCol - column number for the upper left hand corner
        Returns:
        this for chaining
      • setLastColumn

        public final PLCellRange setLastColumn​(int nLastCol)
        Parameters:
        nLastCol - column number for the lower right hand corner
        Returns:
        this for chaining
      • getClone

        @Nonnull
        @ReturnsMutableCopy
        public PLCellRange getClone()
        Specified by:
        getClone in interface com.helger.commons.lang.ICloneable<PLCellRange>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object