Class BlackFxOptionSurfaceVolatilities.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BlackFxOptionSurfaceVolatilities>
-
- com.opengamma.strata.pricer.fxopt.BlackFxOptionSurfaceVolatilities.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<BlackFxOptionSurfaceVolatilities>
- Enclosing class:
- BlackFxOptionSurfaceVolatilities
public static final class BlackFxOptionSurfaceVolatilities.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BlackFxOptionSurfaceVolatilities>
The bean-builder forBlackFxOptionSurfaceVolatilities.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlackFxOptionSurfaceVolatilitiesbuild()BlackFxOptionSurfaceVolatilities.BuildercurrencyPair(CurrencyPair currencyPair)Sets the currency pair that the volatilities are for.Objectget(String propertyName)BlackFxOptionSurfaceVolatilities.Buildername(FxOptionVolatilitiesName name)Sets the name of the volatilities.BlackFxOptionSurfaceVolatilities.Builderset(String propertyName, Object newValue)BlackFxOptionSurfaceVolatilities.Builderset(org.joda.beans.MetaProperty<?> property, Object value)BlackFxOptionSurfaceVolatilities.Buildersurface(Surface surface)Sets the Black volatility surface.StringtoString()BlackFxOptionSurfaceVolatilities.BuildervaluationDateTime(ZonedDateTime valuationDateTime)Sets the valuation date-time.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<BlackFxOptionSurfaceVolatilities>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BlackFxOptionSurfaceVolatilities>
-
set
public BlackFxOptionSurfaceVolatilities.Builder set(String propertyName, Object newValue)
-
set
public BlackFxOptionSurfaceVolatilities.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<BlackFxOptionSurfaceVolatilities>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BlackFxOptionSurfaceVolatilities>
-
build
public BlackFxOptionSurfaceVolatilities build()
-
name
public BlackFxOptionSurfaceVolatilities.Builder name(FxOptionVolatilitiesName name)
Sets the name of the volatilities.- Parameters:
name- the new value, not null- Returns:
- this, for chaining, not null
-
currencyPair
public BlackFxOptionSurfaceVolatilities.Builder currencyPair(CurrencyPair currencyPair)
Sets the currency pair that the volatilities are for.- Parameters:
currencyPair- the new value, not null- Returns:
- this, for chaining, not null
-
valuationDateTime
public BlackFxOptionSurfaceVolatilities.Builder valuationDateTime(ZonedDateTime valuationDateTime)
Sets the valuation date-time. All data items in this provider is calibrated for this date-time.- Parameters:
valuationDateTime- the new value, not null- Returns:
- this, for chaining, not null
-
surface
public BlackFxOptionSurfaceVolatilities.Builder surface(Surface surface)
Sets the Black volatility surface.The x-values represent the expiry year-fraction. The y-values represent the strike. The metadata of the surface must define a day count.
- Parameters:
surface- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BlackFxOptionSurfaceVolatilities>
-
-