Record Class DarkPoolSimulator.Fill
java.lang.Object
java.lang.Record
com.quantfinlib.execution.DarkPoolSimulator.Fill
- Enclosing class:
DarkPoolSimulator
public static record DarkPoolSimulator.Fill(long buyOrderId, long sellOrderId, double price, long quantity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFill(long buyOrderId, long sellOrderId, double price, long quantity) Creates an instance of aFillrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebuyOrderIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleprice()Returns the value of thepricerecord component.longquantity()Returns the value of thequantityrecord component.longReturns the value of thesellOrderIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fill
public Fill(long buyOrderId, long sellOrderId, double price, long quantity) Creates an instance of aFillrecord class.- Parameters:
buyOrderId- the value for thebuyOrderIdrecord componentsellOrderId- the value for thesellOrderIdrecord componentprice- the value for thepricerecord componentquantity- the value for thequantityrecord 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. -
buyOrderId
public long buyOrderId()Returns the value of thebuyOrderIdrecord component.- Returns:
- the value of the
buyOrderIdrecord component
-
sellOrderId
public long sellOrderId()Returns the value of thesellOrderIdrecord component.- Returns:
- the value of the
sellOrderIdrecord component
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
quantity
public long quantity()Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-