Interface Trade

    • Method Detail

      • summarize

        default PortfolioItemSummary summarize()
        Description copied from interface: PortfolioItem
        Summarizes the portfolio item.

        This provides a summary, including a human readable description.

        Specified by:
        summarize in interface PortfolioItem
        Returns:
        the summary of the item
      • getInfo

        TradeInfo getInfo()
        Gets the standard trade information.

        All trades contain this standard set of information.

        Specified by:
        getInfo in interface PortfolioItem
        Returns:
        the trade information
      • withInfo

        Trade withInfo​(TradeInfo info)
        Returns an instance with the specified info.
        Parameters:
        info - the new info
        Returns:
        the instance with the specified info