Record Class CurvePair
java.lang.Object
java.lang.Record
com.quantfinlib.rates.CurvePair
A discount curve (OIS) and the projection curve of one index, as built by
MultiCurveRisk.buildCurves(LocalDate, List, List, CurveInterpolation). The two may be the same object
(single-curve pricing).-
Constructor Summary
ConstructorsConstructorDescriptionCurvePair(DiscountCurve discount, DiscountCurve projection) Creates an instance of aCurvePairrecord class. -
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.Returns the value of theprojectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CurvePair
Creates an instance of aCurvePairrecord class.- Parameters:
discount- the value for thediscountrecord componentprojection- the value for theprojectionrecord component
-
-
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). -
discount
Returns the value of thediscountrecord component.- Returns:
- the value of the
discountrecord component
-
projection
Returns the value of theprojectionrecord component.- Returns:
- the value of the
projectionrecord component
-