Class IborIborSwapTemplate.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborIborSwapTemplate>
-
- com.opengamma.strata.product.swap.type.IborIborSwapTemplate.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<IborIborSwapTemplate>
- Enclosing class:
- IborIborSwapTemplate
public static final class IborIborSwapTemplate.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborIborSwapTemplate>
The bean-builder forIborIborSwapTemplate.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IborIborSwapTemplatebuild()IborIborSwapTemplate.Builderconvention(IborIborSwapConvention convention)Sets the market convention of the swap.Objectget(String propertyName)IborIborSwapTemplate.BuilderperiodToStart(Period periodToStart)Sets the period between the spot value date and the start date.IborIborSwapTemplate.Builderset(String propertyName, Object newValue)IborIborSwapTemplate.Builderset(org.joda.beans.MetaProperty<?> property, Object value)IborIborSwapTemplate.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<IborIborSwapTemplate>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborIborSwapTemplate>
-
set
public IborIborSwapTemplate.Builder set(String propertyName, Object newValue)
-
set
public IborIborSwapTemplate.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<IborIborSwapTemplate>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborIborSwapTemplate>
-
build
public IborIborSwapTemplate build()
-
periodToStart
public IborIborSwapTemplate.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 IborIborSwapTemplate.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 IborIborSwapTemplate.Builder convention(IborIborSwapConvention 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<IborIborSwapTemplate>
-
-