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, wait
build, combinedWith, none, of, of
public 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 PointSensitivity
withCurrency
in interface PointSensitivityBuilder
public ZeroRateSensitivity withSensitivity(double sensitivity)
withSensitivity
in interface PointSensitivity
public int compareKey(PointSensitivity other)
compareKey
in interface PointSensitivity
public ZeroRateSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo
in interface FxConvertible<PointSensitivity>
convertedTo
in interface PointSensitivity
public ZeroRateSensitivity multipliedBy(double factor)
multipliedBy
in interface PointSensitivityBuilder
public ZeroRateSensitivity mapSensitivity(DoubleUnaryOperator operator)
mapSensitivity
in interface PointSensitivityBuilder
public ZeroRateSensitivity normalize()
normalize
in interface PointSensitivityBuilder
public MutablePointSensitivities buildInto(MutablePointSensitivities combination)
buildInto
in interface PointSensitivityBuilder
public ZeroRateSensitivity cloned()
cloned
in interface PointSensitivityBuilder
public static ZeroRateSensitivity.Meta meta()
ZeroRateSensitivity
.public ZeroRateSensitivity.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public Currency getCurveCurrency()
public double getYearFraction()
public Currency getCurrency()
getCurrency
in interface PointSensitivity
public double getSensitivity()
getSensitivity
in interface PointSensitivity
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.