Class CalculationResults

  • All Implemented Interfaces:, Bean, ImmutableBean

    public final class CalculationResults
    extends java.lang.Object
    implements ImmutableBean,
    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,
                                            java.util.List<CalculationResult> results)
        Obtains a calculation result from individual calculations.
        target - the calculation target, such as a trade
        results - the results of the calculation
        the calculation result
      • getTarget

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

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

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

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object