public final class CreditCurveZeroRateSensitivity extends Object implements PointSensitivity, PointSensitivityBuilder, org.joda.beans.ImmutableBean, Serializable
Holds the sensitivity to the zero hazard rate curve at a specific date.
| Modifier and Type | Class and Description |
|---|---|
static class |
CreditCurveZeroRateSensitivity.Meta
The meta-bean for
CreditCurveZeroRateSensitivity. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbuild, combinedWith, none, of, ofpublic static CreditCurveZeroRateSensitivity of(StandardId legalEntityId, Currency currency, double yearFraction, double sensitivity)
legalEntityId - the legal entity identifiercurrency - the currency of the curve and sensitivityyearFraction - the year fraction that was looked up on the curvesensitivity - the value of the sensitivitypublic static CreditCurveZeroRateSensitivity of(StandardId legalEntityId, Currency curveCurrency, double yearFraction, Currency sensitivityCurrency, double sensitivity)
legalEntityId - the legal entity identifiercurveCurrency - 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 static CreditCurveZeroRateSensitivity of(StandardId legalEntityId, ZeroRateSensitivity zeroRateSensitivity)
ZeroRateSensitivity and StandardId.legalEntityId - the legal entity identifierzeroRateSensitivity - the zero rate sensitivitypublic Currency getCurrency()
getCurrency in interface PointSensitivitypublic double getSensitivity()
getSensitivity in interface PointSensitivitypublic Currency getCurveCurrency()
public double getYearFraction()
public CreditCurveZeroRateSensitivity withCurrency(Currency currency)
withCurrency in interface PointSensitivitywithCurrency in interface PointSensitivityBuilderpublic CreditCurveZeroRateSensitivity withSensitivity(double sensitivity)
withSensitivity in interface PointSensitivitypublic int compareKey(PointSensitivity other)
compareKey in interface PointSensitivitypublic CreditCurveZeroRateSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo in interface FxConvertible<PointSensitivity>convertedTo in interface PointSensitivitypublic CreditCurveZeroRateSensitivity multipliedBy(double factor)
multipliedBy in interface PointSensitivityBuilderpublic CreditCurveZeroRateSensitivity mapSensitivity(DoubleUnaryOperator operator)
mapSensitivity in interface PointSensitivityBuilderpublic CreditCurveZeroRateSensitivity normalize()
normalize in interface PointSensitivityBuilderpublic MutablePointSensitivities buildInto(MutablePointSensitivities combination)
buildInto in interface PointSensitivityBuilderpublic CreditCurveZeroRateSensitivity cloned()
cloned in interface PointSensitivityBuilderpublic ZeroRateSensitivity toZeroRateSensitivity()
ZeroRateSensitivity.
This creates the zero rate sensitivity object by omitting the legal entity identifier.
public static CreditCurveZeroRateSensitivity.Meta meta()
CreditCurveZeroRateSensitivity.public CreditCurveZeroRateSensitivity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic StandardId getLegalEntityId()
This identifier is used for the reference legal entity of a credit derivative.
public ZeroRateSensitivity getZeroRateSensitivity()
This stores curve currency, year fraction, sensitivity currency and sensitivity value.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.