public static final class FxSwapTemplate.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>
FxSwapTemplate.| Modifier and Type | Method and 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(org.joda.beans.MetaProperty<?> property,
Object value) |
FxSwapTemplate.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FxSwapTemplate>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>public FxSwapTemplate.Builder set(String propertyName, Object newValue)
public FxSwapTemplate.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FxSwapTemplate>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>public FxSwapTemplate build()
public FxSwapTemplate.Builder periodToNear(Period periodToNear)
For example, a '3M x 6M' FX swap has a period from spot to the near date of 3 months
periodToNear - the new value, not nullpublic FxSwapTemplate.Builder periodToFar(Period periodToFar)
For example, a '3M x 6M' FX swap has a period from spot to the far date of 6 months
periodToFar - the new value, not nullpublic FxSwapTemplate.Builder convention(FxSwapConvention convention)
This specifies the market convention of the FX Swap to be created.
convention - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapTemplate>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.