Class CalculationTaskCell

  • All Implemented Interfaces:
    org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class CalculationTaskCell
    extends Object
    implements org.joda.beans.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
      • meta

        public static org.joda.beans.TypedMetaBean<CalculationTaskCell> meta()
        The meta-bean for CalculationTaskCell.
        Returns:
        the meta-bean, not null
      • metaBean

        public org.joda.beans.TypedMetaBean<CalculationTaskCell> metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object