Class FxSwapTemplate.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>
-
- com.opengamma.strata.product.fx.type.FxSwapTemplate.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FxSwapTemplate>
- Enclosing class:
- FxSwapTemplate
public static final class FxSwapTemplate.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>
The bean-builder forFxSwapTemplate.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxSwapTemplatebuild()FxSwapTemplate.Builderconvention(FxSwapConvention convention)Sets the underlying FX Swap convention.Objectget(String propertyName)FxSwapTemplate.BuilderperiodToFar(Period periodToFar)Sets the period between the spot value date and the far date.FxSwapTemplate.BuilderperiodToNear(Period periodToNear)Sets the period between the spot value date and the near date.FxSwapTemplate.Builderset(String propertyName, Object newValue)FxSwapTemplate.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<FxSwapTemplate>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>
-
set
public FxSwapTemplate.Builder set(String propertyName, Object newValue)
-
set
public FxSwapTemplate.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<FxSwapTemplate>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>
-
build
public FxSwapTemplate build()
-
periodToNear
public FxSwapTemplate.Builder periodToNear(Period periodToNear)
Sets the period between the spot value date and the near date.For example, a '3M x 6M' FX swap has a period from spot to the near date of 3 months
- Parameters:
periodToNear- the new value, not null- Returns:
- this, for chaining, not null
-
periodToFar
public FxSwapTemplate.Builder periodToFar(Period periodToFar)
Sets the period between the spot value date and the far date.For example, a '3M x 6M' FX swap has a period from spot to the far date of 6 months
- Parameters:
periodToFar- the new value, not null- Returns:
- this, for chaining, not null
-
convention
public FxSwapTemplate.Builder convention(FxSwapConvention convention)
Sets the underlying FX Swap convention.This specifies the market convention of the FX Swap to be created.
- 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<FxSwapTemplate>
-
-