Record Class MultiCurrencyExposureSimulator.Domestic
java.lang.Object
java.lang.Record
com.quantfinlib.credit.MultiCurrencyExposureSimulator.Domestic
- Record Components:
discount- domestic discount curvemeanReversion- a, > 0rateVol- sigma, ≥ 0
- Enclosing class:
MultiCurrencyExposureSimulator
public static record MultiCurrencyExposureSimulator.Domestic(MultiCurrencyExposureSimulator.Curve discount, double meanReversion, double rateVol)
extends Record
Domestic Hull-White short rate.
-
Constructor Summary
ConstructorsConstructorDescriptionDomestic(MultiCurrencyExposureSimulator.Curve discount, double meanReversion, double rateVol) Validates the parameters. -
Method Summary
Modifier and TypeMethodDescriptiondiscount()Returns the value of thediscountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themeanReversionrecord component.doublerateVol()Returns the value of therateVolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Domestic
public Domestic(MultiCurrencyExposureSimulator.Curve discount, double meanReversion, double rateVol) Validates the parameters.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
discount
-
meanReversion
public double meanReversion()Returns the value of themeanReversionrecord component.- Returns:
- the value of the
meanReversionrecord component
-
rateVol
-