Record Class SmartOrderRouter.RoutingPlan
java.lang.Object
java.lang.Record
com.quantfinlib.execution.SmartOrderRouter.RoutingPlan
- Enclosing class:
SmartOrderRouter
public static record SmartOrderRouter.RoutingPlan(List<SmartOrderRouter.RouteLeg> legs, long routedQty, long unroutedQty, double expectedAvgAllInPrice)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingPlan(List<SmartOrderRouter.RouteLeg> legs, long routedQty, long unroutedQty, double expectedAvgAllInPrice) Creates an instance of aRoutingPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexpectedAvgAllInPricerecord component.final inthashCode()Returns a hash code value for this object.legs()Returns the value of thelegsrecord component.longReturns the value of theroutedQtyrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theunroutedQtyrecord component.
-
Constructor Details
-
RoutingPlan
public RoutingPlan(List<SmartOrderRouter.RouteLeg> legs, long routedQty, long unroutedQty, double expectedAvgAllInPrice) Creates an instance of aRoutingPlanrecord class.- Parameters:
legs- the value for thelegsrecord componentroutedQty- the value for theroutedQtyrecord componentunroutedQty- the value for theunroutedQtyrecord componentexpectedAvgAllInPrice- the value for theexpectedAvgAllInPricerecord 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. -
legs
Returns the value of thelegsrecord component.- Returns:
- the value of the
legsrecord component
-
routedQty
public long routedQty()Returns the value of theroutedQtyrecord component.- Returns:
- the value of the
routedQtyrecord component
-
unroutedQty
public long unroutedQty()Returns the value of theunroutedQtyrecord component.- Returns:
- the value of the
unroutedQtyrecord component
-
expectedAvgAllInPrice
public double expectedAvgAllInPrice()Returns the value of theexpectedAvgAllInPricerecord component.- Returns:
- the value of the
expectedAvgAllInPricerecord component
-