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 FxSwapTemplate
build()
FxSwapTemplate.Builder
convention(FxSwapConvention convention)
Sets the underlying FX Swap convention.Object
get(String propertyName)
FxSwapTemplate.Builder
periodToFar(Period periodToFar)
Sets the period between the spot value date and the far date.FxSwapTemplate.Builder
periodToNear(Period periodToNear)
Sets the period between the spot value date and the near date.FxSwapTemplate.Builder
set(String propertyName, Object newValue)
FxSwapTemplate.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<FxSwapTemplate>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<FxSwapTemplate>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>
-
-