Record Class Execution
java.lang.Object
java.lang.Record
com.quantfinlib.microstructure.Execution
-
Constructor Summary
Constructors -
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.doublenotional()doubleprice()Returns the value of thepricerecord component.longquantity()Returns the value of thequantityrecord component.side()Returns the value of thesiderecord component.symbol()Returns the value of thesymbolrecord component.longReturns the value of thetimestampNanosrecord component.final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
Execution
public Execution(String symbol, Side side, double price, long quantity, long timestampNanos, String venue) Creates an instance of aExecutionrecord class.- Parameters:
symbol- the value for thesymbolrecord componentside- the value for thesiderecord componentprice- the value for thepricerecord componentquantity- the value for thequantityrecord componenttimestampNanos- the value for thetimestampNanosrecord componentvenue- the value for thevenuerecord component
-
-
Method Details
-
notional
public double notional() -
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. -
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord 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
-
timestampNanos
public long timestampNanos()Returns the value of thetimestampNanosrecord component.- Returns:
- the value of the
timestampNanosrecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-