Class ResolvedBillTrade.Builder

  • All Implemented Interfaces:
    org.joda.beans.BeanBuilder<ResolvedBillTrade>
    Enclosing class:
    ResolvedBillTrade

    public static final class ResolvedBillTrade.Builder
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBillTrade>
    The bean-builder for ResolvedBillTrade.
    • Method Detail

      • info

        public ResolvedBillTrade.Builder info​(PortfolioItemInfo info)
        Sets the additional information, defaulted to an empty instance.

        This allows additional information to be attached.

        Parameters:
        info - the new value, not null
        Returns:
        this, for chaining, not null
      • product

        public ResolvedBillTrade.Builder product​(ResolvedBill product)
        Sets the resolved bill product.

        The product captures the contracted financial details of the trade.

        Parameters:
        product - the new value, not null
        Returns:
        this, for chaining, not null
      • quantity

        public ResolvedBillTrade.Builder quantity​(double quantity)
        Sets the quantity, indicating the number of bond contracts in the trade.

        This will be positive if buying and negative if selling.

        Parameters:
        quantity - the new value
        Returns:
        this, for chaining, not null
      • settlement

        public ResolvedBillTrade.Builder settlement​(Payment settlement)
        Sets the settlement details of the bill trade.

        When this class is used to represent a position, this property will be empty.

        Parameters:
        settlement - the new value
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBillTrade>