Class BulletPayment.Builder

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

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

      • get

        public Object get​(String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<BulletPayment>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
      • set

        public BulletPayment.Builder set​(org.joda.beans.MetaProperty<?> property,
                                         Object value)
        Specified by:
        set in interface org.joda.beans.BeanBuilder<BulletPayment>
        Overrides:
        set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
      • payReceive

        public BulletPayment.Builder payReceive​(PayReceive payReceive)
        Sets whether the payment is to be paid or received.

        A value of 'Pay' implies that the amount is paid to the counterparty. A value of 'Receive' implies that the amount is received from the counterparty.

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

        public BulletPayment.Builder value​(CurrencyAmount value)
        Sets the amount of the payment.

        The amount is unsigned, with the direction implied by payReceive.

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

        public BulletPayment.Builder date​(AdjustableDate date)
        Sets the date that the payment is made.

        This date should normally be a valid business day.

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

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