Class DepositIsdaCreditCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DepositIsdaCreditCurveNode>
-
- com.opengamma.strata.market.curve.DepositIsdaCreditCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<DepositIsdaCreditCurveNode>
- Enclosing class:
- DepositIsdaCreditCurveNode
public static final class DepositIsdaCreditCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DepositIsdaCreditCurveNode>
The bean-builder forDepositIsdaCreditCurveNode
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DepositIsdaCreditCurveNode
build()
DepositIsdaCreditCurveNode.Builder
businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to the start and end date.DepositIsdaCreditCurveNode.Builder
dayCount(DayCount dayCount)
Sets the day count convention.Object
get(String propertyName)
DepositIsdaCreditCurveNode.Builder
label(String label)
Sets the label to use for the node, defaulted.DepositIsdaCreditCurveNode.Builder
observableId(ObservableId observableId)
Sets the identifier of the market data value that provides the rate.DepositIsdaCreditCurveNode.Builder
set(String propertyName, Object newValue)
DepositIsdaCreditCurveNode.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
DepositIsdaCreditCurveNode.Builder
spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the start date from the trade date.DepositIsdaCreditCurveNode.Builder
tenor(Tenor tenor)
Sets the period between the start date and the end date.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<DepositIsdaCreditCurveNode>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DepositIsdaCreditCurveNode>
-
set
public DepositIsdaCreditCurveNode.Builder set(String propertyName, Object newValue)
-
set
public DepositIsdaCreditCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<DepositIsdaCreditCurveNode>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DepositIsdaCreditCurveNode>
-
build
public DepositIsdaCreditCurveNode build()
-
label
public DepositIsdaCreditCurveNode.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
-
observableId
public DepositIsdaCreditCurveNode.Builder observableId(ObservableId observableId)
Sets the identifier of the market data value that provides the rate.- Parameters:
observableId
- the new value, not null- Returns:
- this, for chaining, not null
-
tenor
public DepositIsdaCreditCurveNode.Builder tenor(Tenor tenor)
Sets the period between the start date and the end date.- Parameters:
tenor
- the new value, not null- Returns:
- this, for chaining, not null
-
spotDateOffset
public DepositIsdaCreditCurveNode.Builder spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the start date from the trade date.The offset is applied to the trade date and is typically plus 2 business days.
- Parameters:
spotDateOffset
- the new value, not null- Returns:
- this, for chaining, not null
-
businessDayAdjustment
public DepositIsdaCreditCurveNode.Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to the start and end date.The start and end date will be adjusted as defined here.
- Parameters:
businessDayAdjustment
- the new value, not null- Returns:
- this, for chaining, not null
-
dayCount
public DepositIsdaCreditCurveNode.Builder dayCount(DayCount dayCount)
Sets the day count convention.This defines the term year fraction.
- Parameters:
dayCount
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DepositIsdaCreditCurveNode>
-
-