public final class RepoCurveZeroRateSensitivity extends Object implements PointSensitivity, PointSensitivityBuilder, org.joda.beans.ImmutableBean, Serializable
Holds the sensitivity to the repo curve at a specific date.
Modifier and Type | Class and Description |
---|---|
static class |
RepoCurveZeroRateSensitivity.Meta
The meta-bean for
RepoCurveZeroRateSensitivity . |
Modifier and Type | Method and Description |
---|---|
MutablePointSensitivities |
buildInto(MutablePointSensitivities combination) |
RepoCurveZeroRateSensitivity |
cloned() |
int |
compareKey(PointSensitivity other) |
RepoCurveZeroRateSensitivity |
convertedTo(Currency resultCurrency,
FxRateProvider rateProvider) |
ZeroRateSensitivity |
createZeroRateSensitivity()
Obtains the underlying
ZeroRateSensitivity . |
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.
|
RepoGroup |
getRepoGroup()
Gets the repo group.
|
double |
getSensitivity()
Gets the value of the sensitivity.
|
double |
getYearFraction()
Gets the time that was queried, expressed as a year fraction.
|
int |
hashCode() |
RepoCurveZeroRateSensitivity |
mapSensitivity(DoubleUnaryOperator operator) |
static RepoCurveZeroRateSensitivity.Meta |
meta()
The meta-bean for
RepoCurveZeroRateSensitivity . |
RepoCurveZeroRateSensitivity.Meta |
metaBean() |
RepoCurveZeroRateSensitivity |
multipliedBy(double factor) |
RepoCurveZeroRateSensitivity |
normalize() |
static RepoCurveZeroRateSensitivity |
of(Currency curveCurrency,
double yearFraction,
Currency sensitivityCurrency,
RepoGroup repoGroup,
double sensitivity)
Obtains an instance from the curve currency, date, sensitivity currency,
group and value.
|
static RepoCurveZeroRateSensitivity |
of(Currency currency,
double yearFraction,
RepoGroup repoGroup,
double sensitivity)
Obtains an instance from the curve currency, date, group and value.
|
static RepoCurveZeroRateSensitivity |
of(ZeroRateSensitivity zeroRateSensitivity,
RepoGroup repoGroup)
Obtains an instance from zero rate sensitivity and group.
|
String |
toString() |
RepoCurveZeroRateSensitivity |
withCurrency(Currency currency) |
RepoCurveZeroRateSensitivity |
withSensitivity(double sensitivity) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
build, combinedWith, none, of, of
public static RepoCurveZeroRateSensitivity of(Currency currency, double yearFraction, RepoGroup repoGroup, 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 curverepoGroup
- the groupsensitivity
- the value of the sensitivitypublic static RepoCurveZeroRateSensitivity of(ZeroRateSensitivity zeroRateSensitivity, RepoGroup repoGroup)
zeroRateSensitivity
- the zero rate sensitivityrepoGroup
- the grouppublic static RepoCurveZeroRateSensitivity of(Currency curveCurrency, double yearFraction, Currency sensitivityCurrency, RepoGroup repoGroup, double sensitivity)
curveCurrency
- the currency of the curveyearFraction
- the year fraction that was looked up on the curvesensitivityCurrency
- the currency of the sensitivityrepoGroup
- the groupsensitivity
- the value of the sensitivitypublic RepoCurveZeroRateSensitivity withCurrency(Currency currency)
withCurrency
in interface PointSensitivity
withCurrency
in interface PointSensitivityBuilder
public RepoCurveZeroRateSensitivity withSensitivity(double sensitivity)
withSensitivity
in interface PointSensitivity
public int compareKey(PointSensitivity other)
compareKey
in interface PointSensitivity
public RepoCurveZeroRateSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo
in interface FxConvertible<PointSensitivity>
convertedTo
in interface PointSensitivity
public RepoCurveZeroRateSensitivity multipliedBy(double factor)
multipliedBy
in interface PointSensitivityBuilder
public RepoCurveZeroRateSensitivity mapSensitivity(DoubleUnaryOperator operator)
mapSensitivity
in interface PointSensitivityBuilder
public RepoCurveZeroRateSensitivity normalize()
normalize
in interface PointSensitivityBuilder
public MutablePointSensitivities buildInto(MutablePointSensitivities combination)
buildInto
in interface PointSensitivityBuilder
public RepoCurveZeroRateSensitivity cloned()
cloned
in interface PointSensitivityBuilder
public ZeroRateSensitivity createZeroRateSensitivity()
ZeroRateSensitivity
.
This creates the zero rate sensitivity object by omitting the repo group.
public static RepoCurveZeroRateSensitivity.Meta meta()
RepoCurveZeroRateSensitivity
.public RepoCurveZeroRateSensitivity.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public Currency getCurveCurrency()
public double getYearFraction()
public Currency getCurrency()
getCurrency
in interface PointSensitivity
public RepoGroup getRepoGroup()
This defines the group that the discount factors are for.
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.