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