Record Class MultiCurrencyExposureSimulator.Foreign
java.lang.Object
java.lang.Record
com.quantfinlib.credit.MultiCurrencyExposureSimulator.Foreign
- Record Components:
discount- foreign discount curvemeanReversion- a_c, > 0rateVol- sigma_c, ≥ 0 (0 gives the 2.1 deterministic foreign rate)spot- S_c(0), > 0fxVol- sigma_Sc, ≥ 0
- Enclosing class:
MultiCurrencyExposureSimulator
public static record MultiCurrencyExposureSimulator.Foreign(MultiCurrencyExposureSimulator.Curve discount, double meanReversion, double rateVol, double spot, double fxVol)
extends Record
One foreign currency: its Hull-White short rate and the spot against
the domestic currency (domestic per foreign).
-
Constructor Summary
ConstructorsConstructorDescriptionForeign(MultiCurrencyExposureSimulator.Curve discount, double meanReversion, double rateVol, double spot, double fxVol) 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.doublefxVol()Returns the value of thefxVolrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themeanReversionrecord component.doublerateVol()Returns the value of therateVolrecord component.doublespot()Returns the value of thespotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Foreign
public Foreign(MultiCurrencyExposureSimulator.Curve discount, double meanReversion, double rateVol, double spot, double fxVol) 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
-
spot
-
fxVol
-