Record Class MultiCurrencyExposureSimulator.Csa
java.lang.Object
java.lang.Record
com.quantfinlib.credit.MultiCurrencyExposureSimulator.Csa
- Record Components:
threshold- H, ≥ 0minimumTransfer- MTA, ≥ 0marginPeriodYears- MPR in years, ≥ 0 (10 business days is about 10/250)
- Enclosing class:
MultiCurrencyExposureSimulator
public static record MultiCurrencyExposureSimulator.Csa(double threshold, double minimumTransfer, double marginPeriodYears)
extends Record
Collateral agreement terms (two-way, symmetric).
-
Constructor Summary
ConstructorsConstructorDescriptionCsa(double threshold, double minimumTransfer, double marginPeriodYears) Validates the terms. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themarginPeriodYearsrecord component.doubleReturns the value of theminimumTransferrecord component.doubleReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Csa
public Csa(double threshold, double minimumTransfer, double marginPeriodYears) Validates the terms.
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
threshold
-
minimumTransfer
public double minimumTransfer()Returns the value of theminimumTransferrecord component.- Returns:
- the value of the
minimumTransferrecord component
-
marginPeriodYears
public double marginPeriodYears()Returns the value of themarginPeriodYearsrecord component.- Returns:
- the value of the
marginPeriodYearsrecord component
-