Record Class MultiCurrencyExposureSimulator.SwapTerms
java.lang.Object
java.lang.Record
com.quantfinlib.credit.MultiCurrencyExposureSimulator.SwapTerms
- Record Components:
notional- notional, > 0fixedRate- fixed rate, decimalpayFixed- true for a payer swap (receive floating)startYears- first reset time, ≥ 0maturityYears- last payment time, > startpaymentsPerYear- payments per year, ≥ 1
- Enclosing class:
MultiCurrencyExposureSimulator
public static record MultiCurrencyExposureSimulator.SwapTerms(double notional, double fixedRate, boolean payFixed, double startYears, double maturityYears, int paymentsPerYear)
extends Record
Vanilla fixed-for-floating swap.
-
Constructor Summary
ConstructorsConstructorDescriptionSwapTerms(double notional, double fixedRate, boolean payFixed, double startYears, double maturityYears, int paymentsPerYear) Validates the terms. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefixedRaterecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thematurityYearsrecord component.doublenotional()Returns the value of thenotionalrecord component.booleanpayFixed()Returns the value of thepayFixedrecord component.intReturns the value of thepaymentsPerYearrecord component.doubleReturns the value of thestartYearsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SwapTerms
public SwapTerms(double notional, double fixedRate, boolean payFixed, double startYears, double maturityYears, int paymentsPerYear) 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. -
notional
-
fixedRate
-
payFixed
-
startYears
public double startYears()Returns the value of thestartYearsrecord component.- Returns:
- the value of the
startYearsrecord component
-
maturityYears
public double maturityYears()Returns the value of thematurityYearsrecord component.- Returns:
- the value of the
maturityYearsrecord component
-
paymentsPerYear
public int paymentsPerYear()Returns the value of thepaymentsPerYearrecord component.- Returns:
- the value of the
paymentsPerYearrecord component
-