Class FraCurveNode.Builder

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

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

      • get

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

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

        public FraCurveNode.Builder template​(FraTemplate template)
        Sets the template for the FRA associated with this node.
        Parameters:
        template - the new value, not null
        Returns:
        this, for chaining, not null
      • rateId

        public FraCurveNode.Builder rateId​(ObservableId rateId)
        Sets the identifier of the market data value that provides the rate.
        Parameters:
        rateId - the new value, not null
        Returns:
        this, for chaining, not null
      • additionalSpread

        public FraCurveNode.Builder additionalSpread​(double additionalSpread)
        Sets the additional spread added to the rate.
        Parameters:
        additionalSpread - the new value
        Returns:
        this, for chaining, not null
      • label

        public FraCurveNode.Builder label​(String label)
        Sets the label to use for the node, defaulted.

        When building, this will default based on the period to end if not specified.

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

        public FraCurveNode.Builder date​(CurveNodeDate date)
        Sets the method by which the date of the node is calculated, defaulted to 'End'.
        Parameters:
        date - the new value
        Returns:
        this, for chaining, not null
      • dateOrder

        public FraCurveNode.Builder dateOrder​(CurveNodeDateOrder dateOrder)
        Sets the date order rules, used to ensure that the dates in the curve are in order. If not specified, this will default to CurveNodeDateOrder.DEFAULT.
        Parameters:
        dateOrder - 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<FraCurveNode>