Class Swap.Builder

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

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

      • get

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

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

        public Swap build()
      • legs

        public Swap.Builder legs​(List<? extends SwapLeg> legs)
        Sets the legs of the swap.

        A swap consists of one or more legs. The legs of a swap are essentially unordered, however it is more efficient and closer to user expectation to treat them as being ordered.

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

        public Swap.Builder legs​(SwapLeg... legs)
        Sets the legs property in the builder from an array of objects.
        Parameters:
        legs - the new value, not empty
        Returns:
        this, for chaining, not null
      • toString

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