Class FxSwapTemplate.Builder

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

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

      • get

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

        public FxSwapTemplate.Builder periodToNear​(Period periodToNear)
        Sets the period between the spot value date and the near date.

        For example, a '3M x 6M' FX swap has a period from spot to the near date of 3 months

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

        public FxSwapTemplate.Builder periodToFar​(Period periodToFar)
        Sets the period between the spot value date and the far date.

        For example, a '3M x 6M' FX swap has a period from spot to the far date of 6 months

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

        public FxSwapTemplate.Builder convention​(FxSwapConvention convention)
        Sets the underlying FX Swap convention.

        This specifies the market convention of the FX Swap to be created.

        Parameters:
        convention - 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<FxSwapTemplate>