Class OvernightIborSwapCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapCurveNode>
-
- com.opengamma.strata.market.curve.node.OvernightIborSwapCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<OvernightIborSwapCurveNode>
- Enclosing class:
- OvernightIborSwapCurveNode
public static final class OvernightIborSwapCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapCurveNode>
The bean-builder forOvernightIborSwapCurveNode.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OvernightIborSwapCurveNode.BuilderadditionalSpread(double additionalSpread)Sets the additional spread added to the rate.OvernightIborSwapCurveNodebuild()OvernightIborSwapCurveNode.Builderdate(CurveNodeDate date)Sets the method by which the date of the node is calculated, defaulted to 'End'.OvernightIborSwapCurveNode.BuilderdateOrder(CurveNodeDateOrder dateOrder)Sets the date order rules, used to ensure that the dates in the curve are in order.Objectget(String propertyName)OvernightIborSwapCurveNode.Builderlabel(String label)Sets the label to use for the node, defaulted.OvernightIborSwapCurveNode.BuilderrateId(ObservableId rateId)Sets the identifier of the market data value that provides the rate.OvernightIborSwapCurveNode.Builderset(String propertyName, Object newValue)OvernightIborSwapCurveNode.Builderset(org.joda.beans.MetaProperty<?> property, Object value)OvernightIborSwapCurveNode.Buildertemplate(OvernightIborSwapTemplate template)Sets the template for the swap associated with this node.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<OvernightIborSwapCurveNode>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapCurveNode>
-
set
public OvernightIborSwapCurveNode.Builder set(String propertyName, Object newValue)
-
set
public OvernightIborSwapCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<OvernightIborSwapCurveNode>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapCurveNode>
-
build
public OvernightIborSwapCurveNode build()
-
template
public OvernightIborSwapCurveNode.Builder template(OvernightIborSwapTemplate template)
Sets the template for the swap associated with this node.- Parameters:
template- the new value, not null- Returns:
- this, for chaining, not null
-
rateId
public OvernightIborSwapCurveNode.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 OvernightIborSwapCurveNode.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 OvernightIborSwapCurveNode.Builder label(String label)
Sets the label to use for the node, defaulted.When building, this will default based on the tenor if not specified.
- Parameters:
label- the new value, not empty- Returns:
- this, for chaining, not null
-
date
public OvernightIborSwapCurveNode.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 OvernightIborSwapCurveNode.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 toCurveNodeDateOrder.DEFAULT.- Parameters:
dateOrder- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapCurveNode>
-
-