Class ResolvedSwap.Builder

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

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

      • get

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

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

        public ResolvedSwap.Builder legs​(List<ResolvedSwapLeg> 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 ResolvedSwap.Builder legs​(ResolvedSwapLeg... 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<ResolvedSwap>