Record Class VenueBenchmark.Sample
java.lang.Object
java.lang.Record
com.quantfinlib.execution.VenueBenchmark.Sample
- Enclosing class:
VenueBenchmark
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfilled()Returns the value of thefilledrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelatencyToFillNanosrecord component.doubleReturns the value of themidAfterHorizonrecord component.doubleReturns the value of themidAtExecrecord component.doubleprice()Returns the value of thepricerecord component.longquantity()Returns the value of thequantityrecord component.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
Sample
public Sample(String venue, Side side, double price, long quantity, double midAtExec, double midAfterHorizon, long latencyToFillNanos, boolean filled) Creates an instance of aSamplerecord class.- Parameters:
venue- the value for thevenuerecord componentside- the value for thesiderecord componentprice- the value for thepricerecord componentquantity- the value for thequantityrecord componentmidAtExec- the value for themidAtExecrecord componentmidAfterHorizon- the value for themidAfterHorizonrecord componentlatencyToFillNanos- the value for thelatencyToFillNanosrecord componentfilled- the value for thefilledrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord 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
-
midAtExec
public double midAtExec()Returns the value of themidAtExecrecord component.- Returns:
- the value of the
midAtExecrecord component
-
midAfterHorizon
public double midAfterHorizon()Returns the value of themidAfterHorizonrecord component.- Returns:
- the value of the
midAfterHorizonrecord component
-
latencyToFillNanos
public long latencyToFillNanos()Returns the value of thelatencyToFillNanosrecord component.- Returns:
- the value of the
latencyToFillNanosrecord component
-
filled
public boolean filled()Returns the value of thefilledrecord component.- Returns:
- the value of the
filledrecord component
-