Class CalculationTaskCell

  • All Implemented Interfaces:
    Bean, ImmutableBean

    public final class CalculationTaskCell
    extends java.lang.Object
    implements ImmutableBean
    A single cell within a calculation task.

    Each CalculationTask calculates a result for one or more cells. This class capture details of each cell.

    • Method Detail

      • of

        public static CalculationTaskCell of​(int rowIndex,
                                             int columnIndex,
                                             Measure measure,
                                             ReportingCurrency reportingCurrency)
        Obtains an instance, specifying the cell indices, measure and reporting currency.

        The result will contain no calculation parameters.

        Parameters:
        rowIndex - the row index
        columnIndex - the column index
        measure - the measure to calculate
        reportingCurrency - the reporting currency
        Returns:
        the cell
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getRowIndex

        public int getRowIndex()
        Gets the row index of the cell in the results grid.
        Returns:
        the value of the property
      • getColumnIndex

        public int getColumnIndex()
        Gets the column index of the cell in the results grid.
        Returns:
        the value of the property
      • getMeasure

        public Measure getMeasure()
        Gets the measure to be calculated.
        Returns:
        the value of the property, not null
      • getReportingCurrency

        public ReportingCurrency getReportingCurrency()
        Gets the reporting currency.
        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object