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
        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
        the trade information
      • withInfo

        Trade withInfo​(PortfolioItemInfo info)
        Returns an instance with the specified info.
        Specified by:
        withInfo in interface PortfolioItem
        info - the new info
        the instance with the specified info