public final class BondYieldSensitivity extends Object implements PointSensitivity, PointSensitivityBuilder, org.joda.beans.ImmutableBean, Serializable
Holds the sensitivity to the bond yield grid point.
| Modifier and Type | Class and Description |
|---|---|
static class |
BondYieldSensitivity.Meta
The meta-bean for
BondYieldSensitivity. |
| Modifier and Type | Method and Description |
|---|---|
MutablePointSensitivities |
buildInto(MutablePointSensitivities combination) |
BondYieldSensitivity |
cloned() |
int |
compareKey(PointSensitivity other) |
BondYieldSensitivity |
convertedTo(Currency resultCurrency,
FxRateProvider rateProvider) |
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the sensitivity.
|
double |
getDuration()
Gets the underlying duration.
|
double |
getExpiry()
Gets the time to expiry of the option as a year fraction.
|
double |
getForward()
Gets the underlying bond forward yield.
|
double |
getSensitivity()
Gets the value of the sensitivity.
|
double |
getStrike()
Gets the strike yield.
|
BondVolatilitiesName |
getVolatilitiesName()
Gets the name of the volatilities.
|
int |
hashCode() |
BondYieldSensitivity |
mapSensitivity(DoubleUnaryOperator operator) |
static BondYieldSensitivity.Meta |
meta()
The meta-bean for
BondYieldSensitivity. |
BondYieldSensitivity.Meta |
metaBean() |
BondYieldSensitivity |
multipliedBy(double factor) |
BondYieldSensitivity |
normalize() |
static BondYieldSensitivity |
of(BondVolatilitiesName volatilitiesName,
double expiry,
double duration,
double strike,
double forward,
Currency sensitivityCurrency,
double sensitivity)
Obtains an instance from the specified elements.
|
String |
toString() |
BondYieldSensitivity |
withCurrency(Currency currency) |
BondYieldSensitivity |
withSensitivity(double value) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbuild, combinedWith, none, of, ofpublic static BondYieldSensitivity of(BondVolatilitiesName volatilitiesName, double expiry, double duration, double strike, double forward, Currency sensitivityCurrency, double sensitivity)
volatilitiesName - the name of the volatilitiesexpiry - the time to expiry of the option as a year fractionduration - the underlying bond durationstrike - the bond strike yieldforward - the underlying bond forward yieldsensitivityCurrency - the currency of the sensitivitysensitivity - the value of the sensitivitypublic BondYieldSensitivity withCurrency(Currency currency)
withCurrency in interface PointSensitivitywithCurrency in interface PointSensitivityBuilderpublic BondYieldSensitivity withSensitivity(double value)
withSensitivity in interface PointSensitivitypublic int compareKey(PointSensitivity other)
compareKey in interface PointSensitivitypublic BondYieldSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo in interface FxConvertible<PointSensitivity>convertedTo in interface PointSensitivitypublic BondYieldSensitivity multipliedBy(double factor)
multipliedBy in interface PointSensitivityBuilderpublic BondYieldSensitivity mapSensitivity(DoubleUnaryOperator operator)
mapSensitivity in interface PointSensitivityBuilderpublic BondYieldSensitivity normalize()
normalize in interface PointSensitivityBuilderpublic MutablePointSensitivities buildInto(MutablePointSensitivities combination)
buildInto in interface PointSensitivityBuilderpublic BondYieldSensitivity cloned()
cloned in interface PointSensitivityBuilderpublic static BondYieldSensitivity.Meta meta()
BondYieldSensitivity.public BondYieldSensitivity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic BondVolatilitiesName getVolatilitiesName()
public double getExpiry()
public double getDuration()
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.