Record Class SpreadExecutionAlgo.Children
java.lang.Object
java.lang.Record
com.quantfinlib.execution.SpreadExecutionAlgo.Children
- Enclosing class:
SpreadExecutionAlgo
public static record SpreadExecutionAlgo.Children(long leadQty, long hedgeQty, boolean atRiskCap)
extends Record
This interval's child quantities, per leg.
-
Constructor Summary
ConstructorsConstructorDescriptionChildren(long leadQty, long hedgeQty, boolean atRiskCap) Creates an instance of aChildrenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theatRiskCaprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longhedgeQty()Returns the value of thehedgeQtyrecord component.longleadQty()Returns the value of theleadQtyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Children
public Children(long leadQty, long hedgeQty, boolean atRiskCap) Creates an instance of aChildrenrecord class.- Parameters:
leadQty- the value for theleadQtyrecord componenthedgeQty- the value for thehedgeQtyrecord componentatRiskCap- the value for theatRiskCaprecord 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 with thecomparemethod from their corresponding wrapper classes. -
leadQty
public long leadQty()Returns the value of theleadQtyrecord component.- Returns:
- the value of the
leadQtyrecord component
-
hedgeQty
public long hedgeQty()Returns the value of thehedgeQtyrecord component.- Returns:
- the value of the
hedgeQtyrecord component
-
atRiskCap
public boolean atRiskCap()Returns the value of theatRiskCaprecord component.- Returns:
- the value of the
atRiskCaprecord component
-