Record Class MultiCurrencyExposureSimulator.Swap
java.lang.Object
java.lang.Record
com.quantfinlib.credit.MultiCurrencyExposureSimulator.Swap
- Record Components:
terms- swap termsprojection- projection curve, or null to project on the discount curve
- Enclosing class:
MultiCurrencyExposureSimulator
public static record MultiCurrencyExposureSimulator.Swap(MultiCurrencyExposureSimulator.SwapTerms terms, MultiCurrencyExposureSimulator.Curve projection)
extends Record
A domestic swap with an optional projection curve for its floating leg.
-
Constructor Summary
ConstructorsConstructorDescriptionSwap(MultiCurrencyExposureSimulator.SwapTerms terms, MultiCurrencyExposureSimulator.Curve projection) Validates. -
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.Returns the value of theprojectionrecord component.terms()Returns the value of thetermsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Swap
public Swap(MultiCurrencyExposureSimulator.SwapTerms terms, MultiCurrencyExposureSimulator.Curve projection) Validates.
-
-
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 withObjects::equals(Object,Object). -
terms
-
projection
Returns the value of theprojectionrecord component.- Returns:
- the value of the
projectionrecord component
-