Class CalculationResults

  • All Implemented Interfaces:
    java.io.Serializable, Bean, ImmutableBean

    public final class CalculationResults
    extends java.lang.Object
    implements ImmutableBean, java.io.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,
                                            java.util.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
      • getTarget

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

        public com.google.common.collect.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
      • 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
      • toString

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