Record Class SaCcr.SubNettingSet
java.lang.Object
java.lang.Record
com.quantfinlib.risk.SaCcr.SubNettingSet
- Record Components:
trades- the trades of the sub-netting setcollateralHeld- haircut collateral held for these tradesmargin- the margin agreement, or null for unmargined
- Enclosing class:
SaCcr
public static record SaCcr.SubNettingSet(List<SaCcrTrade> trades, double collateralHeld, SaCcr.Margin margin)
extends Record
One part of a netting set for
SaCcr.subNettingSets(List): the trades
under one margin agreement (or the unmargined trades when
margin is null) and the haircut collateral that belongs to
them.-
Constructor Summary
ConstructorsConstructorDescriptionSubNettingSet(List<SaCcrTrade> trades, double collateralHeld, SaCcr.Margin margin) Validates and copies the trade list. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecollateralHeldrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.margin()Returns the value of themarginrecord component.final StringtoString()Returns a string representation of this record class.trades()Returns the value of thetradesrecord component.
-
Constructor Details
-
SubNettingSet
Validates and copies the trade list.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
trades
-
collateralHeld
public double collateralHeld()Returns the value of thecollateralHeldrecord component.- Returns:
- the value of the
collateralHeldrecord component
-
margin
-