Class CalculationResults

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

    public final class CalculationResults
    extends Object
    implements org.joda.beans.ImmutableBean, Serializable
    A set of related calculation results for a single calculation target.

    This contains a list of CalculationResult, produced by a single CalculationTask. Each individual result relates to a single cell in the output grid.

    See Also:
    Serialized Form
    • Method Detail

      • of

        public static CalculationResults of​(CalculationTarget target,
                                            List<CalculationResult> results)
        Obtains a calculation result from individual calculations.
        Parameters:
        target - the calculation target, such as a trade
        results - the results of the calculation
        Returns:
        the calculation result
      • meta

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

        public org.joda.beans.TypedMetaBean<CalculationResults> metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getTarget

        public CalculationTarget getTarget()
        Gets the target of the calculation, often a trade.
        Returns:
        the value of the property, not null
      • getCells

        public ImmutableList<CalculationResult> getCells()
        Gets the calculated cells. Each entry contains a calculation result for a single cell.
        Returns:
        the value of the property, not null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object