public final class ZeroRateSensitivity extends Object implements PointSensitivity, PointSensitivityBuilder, org.joda.beans.ImmutableBean, Serializable
Holds the sensitivity to the zero rate curve at a specific date.
| Modifier and Type | Class and Description |
|---|---|
static class |
ZeroRateSensitivity.Meta
The meta-bean for
ZeroRateSensitivity. |
| Modifier and Type | Method and Description |
|---|---|
MutablePointSensitivities |
buildInto(MutablePointSensitivities combination) |
ZeroRateSensitivity |
cloned() |
int |
compareKey(PointSensitivity other) |
ZeroRateSensitivity |
convertedTo(Currency resultCurrency,
FxRateProvider rateProvider) |
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the sensitivity.
|
Currency |
getCurveCurrency()
Gets the currency of the curve for which the sensitivity is computed.
|
double |
getSensitivity()
Gets the value of the sensitivity.
|
double |
getYearFraction()
Gets the time that was queried, expressed as a year fraction.
|
int |
hashCode() |
ZeroRateSensitivity |
mapSensitivity(DoubleUnaryOperator operator) |
static ZeroRateSensitivity.Meta |
meta()
The meta-bean for
ZeroRateSensitivity. |
ZeroRateSensitivity.Meta |
metaBean() |
ZeroRateSensitivity |
multipliedBy(double factor) |
ZeroRateSensitivity |
normalize() |
static ZeroRateSensitivity |
of(Currency curveCurrency,
double yearFraction,
Currency sensitivityCurrency,
double sensitivity)
Obtains an instance from the curve currency, date, sensitivity currency and value.
|
static ZeroRateSensitivity |
of(Currency currency,
double yearFraction,
double sensitivity)
Obtains an instance from the curve currency, date and value.
|
String |
toString() |
ZeroRateSensitivity |
withCurrency(Currency currency) |
ZeroRateSensitivity |
withSensitivity(double sensitivity) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbuild, combinedWith, none, of, ofpublic static ZeroRateSensitivity of(Currency currency, double yearFraction, double sensitivity)
The currency representing the curve is used also for the sensitivity currency.
currency - the currency of the curve and sensitivityyearFraction - the year fraction that was looked up on the curvesensitivity - the value of the sensitivitypublic static ZeroRateSensitivity of(Currency curveCurrency, double yearFraction, Currency sensitivityCurrency, double sensitivity)
The currency representing the curve is used also for the sensitivity currency.
curveCurrency - the currency of the curveyearFraction - the year fraction that was looked up on the curvesensitivityCurrency - the currency of the sensitivitysensitivity - the value of the sensitivitypublic ZeroRateSensitivity withCurrency(Currency currency)
withCurrency in interface PointSensitivitywithCurrency in interface PointSensitivityBuilderpublic ZeroRateSensitivity withSensitivity(double sensitivity)
withSensitivity in interface PointSensitivitypublic int compareKey(PointSensitivity other)
compareKey in interface PointSensitivitypublic ZeroRateSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo in interface FxConvertible<PointSensitivity>convertedTo in interface PointSensitivitypublic ZeroRateSensitivity multipliedBy(double factor)
multipliedBy in interface PointSensitivityBuilderpublic ZeroRateSensitivity mapSensitivity(DoubleUnaryOperator operator)
mapSensitivity in interface PointSensitivityBuilderpublic ZeroRateSensitivity normalize()
normalize in interface PointSensitivityBuilderpublic MutablePointSensitivities buildInto(MutablePointSensitivities combination)
buildInto in interface PointSensitivityBuilderpublic ZeroRateSensitivity cloned()
cloned in interface PointSensitivityBuilderpublic static ZeroRateSensitivity.Meta meta()
ZeroRateSensitivity.public ZeroRateSensitivity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Currency getCurveCurrency()
public double getYearFraction()
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.