Class OvernightIborSwapTemplate.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapTemplate>
-
- com.opengamma.strata.product.swap.type.OvernightIborSwapTemplate.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<OvernightIborSwapTemplate>
- Enclosing class:
- OvernightIborSwapTemplate
public static final class OvernightIborSwapTemplate.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapTemplate>
The bean-builder forOvernightIborSwapTemplate.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OvernightIborSwapTemplatebuild()OvernightIborSwapTemplate.Builderconvention(OvernightIborSwapConvention convention)Sets the market convention of the swap.Objectget(String propertyName)OvernightIborSwapTemplate.BuilderperiodToStart(Period periodToStart)Sets the period between the spot value date and the start date.OvernightIborSwapTemplate.Builderset(String propertyName, Object newValue)OvernightIborSwapTemplate.Builderset(org.joda.beans.MetaProperty<?> property, Object value)OvernightIborSwapTemplate.Buildertenor(Tenor tenor)Sets the tenor of the swap.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<OvernightIborSwapTemplate>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapTemplate>
-
set
public OvernightIborSwapTemplate.Builder set(String propertyName, Object newValue)
-
set
public OvernightIborSwapTemplate.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<OvernightIborSwapTemplate>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapTemplate>
-
build
public OvernightIborSwapTemplate build()
-
periodToStart
public OvernightIborSwapTemplate.Builder periodToStart(Period periodToStart)
Sets the period between the spot value date and the start date.This is often zero, but can be greater if the swap if forward starting. This must not be negative.
- Parameters:
periodToStart- the new value, not null- Returns:
- this, for chaining, not null
-
tenor
public OvernightIborSwapTemplate.Builder tenor(Tenor tenor)
Sets the tenor of the swap.This is the period from the first accrual date to the last accrual date.
- Parameters:
tenor- the new value, not null- Returns:
- this, for chaining, not null
-
convention
public OvernightIborSwapTemplate.Builder convention(OvernightIborSwapConvention convention)
Sets the market convention of the swap.- Parameters:
convention- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIborSwapTemplate>
-
-