Class Swap.Builder

    • Method Detail

      • set

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

        public Swap build()
      • legs

        public Swap.Builder legs​(java.util.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