public final class FxOptionSensitivity extends Object implements PointSensitivity, PointSensitivityBuilder, org.joda.beans.ImmutableBean, Serializable
Holds the sensitivity to a specific volatility point.
| Modifier and Type | Class and Description |
|---|---|
static class |
FxOptionSensitivity.Meta
The meta-bean for
FxOptionSensitivity. |
| Modifier and Type | Method and Description |
|---|---|
MutablePointSensitivities |
buildInto(MutablePointSensitivities combination) |
FxOptionSensitivity |
cloned() |
int |
compareKey(PointSensitivity other) |
FxOptionSensitivity |
convertedTo(Currency resultCurrency,
FxRateProvider rateProvider) |
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the sensitivity.
|
CurrencyPair |
getCurrencyPair()
Gets the currency pair for which the sensitivity is presented.
|
double |
getExpiry()
Gets the time to expiry of the option as a year fraction.
|
double |
getForward()
Gets the forward rate.
|
double |
getSensitivity()
Gets the value of the sensitivity.
|
double |
getStrike()
Gets the strike rate.
|
FxOptionVolatilitiesName |
getVolatilitiesName()
Gets the name of the volatilities.
|
int |
hashCode() |
FxOptionSensitivity |
mapSensitivity(DoubleUnaryOperator operator) |
static FxOptionSensitivity.Meta |
meta()
The meta-bean for
FxOptionSensitivity. |
FxOptionSensitivity.Meta |
metaBean() |
FxOptionSensitivity |
multipliedBy(double factor) |
FxOptionSensitivity |
normalize() |
static FxOptionSensitivity |
of(FxOptionVolatilitiesName volatilitiesName,
CurrencyPair currencyPair,
double expiry,
double strike,
double forward,
Currency sensitivityCurrency,
double sensitivity)
Obtains an instance, specifying sensitivity currency.
|
String |
toString() |
FxOptionSensitivity |
withCurrency(Currency currency) |
FxOptionSensitivity |
withSensitivity(double sensitivity) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbuild, combinedWith, none, of, ofpublic static FxOptionSensitivity of(FxOptionVolatilitiesName volatilitiesName, CurrencyPair currencyPair, double expiry, double strike, double forward, Currency sensitivityCurrency, double sensitivity)
volatilitiesName - the name of the volatilitiescurrencyPair - the currency pairexpiry - the time to expiry of the option as a year fractionstrike - the strike rateforward - the forward ratesensitivityCurrency - the currency of the sensitivitysensitivity - the value of the sensitivitypublic FxOptionSensitivity withCurrency(Currency currency)
withCurrency in interface PointSensitivitywithCurrency in interface PointSensitivityBuilderpublic FxOptionSensitivity withSensitivity(double sensitivity)
withSensitivity in interface PointSensitivitypublic int compareKey(PointSensitivity other)
compareKey in interface PointSensitivitypublic FxOptionSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo in interface FxConvertible<PointSensitivity>convertedTo in interface PointSensitivitypublic FxOptionSensitivity multipliedBy(double factor)
multipliedBy in interface PointSensitivityBuilderpublic FxOptionSensitivity mapSensitivity(DoubleUnaryOperator operator)
mapSensitivity in interface PointSensitivityBuilderpublic FxOptionSensitivity normalize()
normalize in interface PointSensitivityBuilderpublic MutablePointSensitivities buildInto(MutablePointSensitivities combination)
buildInto in interface PointSensitivityBuilderpublic FxOptionSensitivity cloned()
cloned in interface PointSensitivityBuilderpublic static FxOptionSensitivity.Meta meta()
FxOptionSensitivity.public FxOptionSensitivity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic FxOptionVolatilitiesName getVolatilitiesName()
public CurrencyPair getCurrencyPair()
public double getExpiry()
public double getStrike()
public double getForward()
public Currency getCurrency()
getCurrency in interface PointSensitivitypublic double getSensitivity()
getSensitivity in interface PointSensitivityCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.