Record Class CvaApproximator.Bilateral
java.lang.Object
java.lang.Record
com.quantfinlib.credit.CvaApproximator.Bilateral
- Record Components:
cva- counterparty-default loss, charged only if the bank has not defaulted firstdva- own-default benefit, counted only if the counterparty has not defaulted first
- Enclosing class:
CvaApproximator
Bilateral CVA and DVA with first-to-default conditioning.
-
Constructor Summary
ConstructorsConstructorDescriptionBilateral(double cva, double dva) Creates an instance of aBilateralrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublecva()Returns the value of thecvarecord component.doubledva()Returns the value of thedvarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doubletotal()Bilateral adjustment, a charge when positive.
-
Constructor Details
-
Bilateral
-
-
Method Details
-
total
public double total()Bilateral adjustment, a charge when positive.- Returns:
cva - dva
-
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. -
cva
-
dva
-