Record Class SaCcr.Margin
java.lang.Object
java.lang.Record
com.quantfinlib.risk.SaCcr.Margin
- Record Components:
threshold- TH, the exposure below which no variation margin is called (≥ 0)minimumTransfer- MTA (≥ 0)nica- net independent collateral amount (may be negative when the bank posts more than it holds)mporBusinessDays- margin period of risk in business days (10 + N - 1 for re-margining every N days)
- Enclosing class:
SaCcr
public static record SaCcr.Margin(double threshold, double minimumTransfer, double nica, double mporBusinessDays)
extends Record
Margin agreement terms for a margined netting set.
-
Constructor Summary
ConstructorsConstructorDescriptionMargin(double threshold, double minimumTransfer, double nica, double mporBusinessDays) 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 theminimumTransferrecord component.doubleReturns the value of themporBusinessDaysrecord component.doublenica()Returns the value of thenicarecord component.doubleReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Margin
public Margin(double threshold, double minimumTransfer, double nica, double mporBusinessDays) 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
-
nica
-
mporBusinessDays
public double mporBusinessDays()Returns the value of themporBusinessDaysrecord component.- Returns:
- the value of the
mporBusinessDaysrecord component
-