Record Class CrbAutoHedger.HedgeOrder
java.lang.Object
java.lang.Record
com.quantfinlib.crb.CrbAutoHedger.HedgeOrder
- Enclosing class:
CrbAutoHedger
One instrument's hedge instruction.
-
Constructor Summary
ConstructorsConstructorDescriptionHedgeOrder(int instrument, double notional) Creates an instance of aHedgeOrderrecord class. -
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.intReturns the value of theinstrumentrecord component.doublenotional()Returns the value of thenotionalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HedgeOrder
public HedgeOrder(int instrument, double notional) Creates an instance of aHedgeOrderrecord class.- Parameters:
instrument- the value for theinstrumentrecord componentnotional- the value for thenotionalrecord 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. -
instrument
public int instrument()Returns the value of theinstrumentrecord component.- Returns:
- the value of the
instrumentrecord component
-
notional
public double notional()Returns the value of thenotionalrecord component.- Returns:
- the value of the
notionalrecord component
-