Record Class Slice
java.lang.Object
java.lang.Record
com.quantfinlib.execution.Slice
One child slice of an execution schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionSlice(long offsetMillis, long quantity) Creates an instance of aSlicerecord 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.longReturns the value of theoffsetMillisrecord component.longquantity()Returns the value of thequantityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Slice
public Slice(long offsetMillis, long quantity) Creates an instance of aSlicerecord class.- Parameters:
offsetMillis- the value for theoffsetMillisrecord 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. -
offsetMillis
public long offsetMillis()Returns the value of theoffsetMillisrecord component.- Returns:
- the value of the
offsetMillisrecord component
-
quantity
public long quantity()Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-