Class FraTrade.Builder

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FraTrade build()  
      java.lang.Object get​(java.lang.String propertyName)  
      FraTrade.Builder info​(TradeInfo info)
      Sets the additional trade information, defaulted to an empty instance.
      FraTrade.Builder product​(Fra product)
      Sets the FRA product that was agreed when the trade occurred.
      FraTrade.Builder set​(java.lang.String propertyName, java.lang.Object newValue)  
      FraTrade.Builder set​(org.joda.beans.MetaProperty<?> property, java.lang.Object value)  
      java.lang.String toString()  
      • Methods inherited from class org.joda.beans.impl.direct.DirectFieldsBeanBuilder

        get
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • get

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

        public FraTrade.Builder set​(java.lang.String propertyName,
                                    java.lang.Object newValue)
      • set

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

        public FraTrade.Builder info​(TradeInfo info)
        Sets the additional trade information, defaulted to an empty instance.

        This allows additional information to be attached to the trade.

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

        public FraTrade.Builder product​(Fra product)
        Sets the FRA product that was agreed when the trade occurred.

        The product captures the contracted financial details of the trade.

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

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