Package edu.yu.marketmaker.model
Record Class Fill
java.lang.Object
java.lang.Record
edu.yu.marketmaker.model.Fill
- Record Components:
orderId-symbol-side- buy/sellquantity-price-quoteId-createdAt- timestamp
- All Implemented Interfaces:
Identifiable<UUID>,Serializable
public record Fill(UUID orderId, String symbol, Side side, int quantity, double price, UUID quoteId, long createdAt)
extends Record
implements Identifiable<UUID>, Serializable
A fill is the result of a successful execution against a quote.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.getId()Returns the unique identifier for this entity.final inthashCode()Returns a hash code value for this object.orderId()Returns the value of theorderIdrecord component.doubleprice()Returns the value of thepricerecord component.intquantity()Returns the value of thequantityrecord component.quoteId()Returns the value of thequoteIdrecord component.side()Returns the value of thesiderecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fill
public Fill(UUID orderId, String symbol, Side side, int quantity, double price, UUID quoteId, long createdAt) Creates an instance of aFillrecord class.- Parameters:
orderId- the value for theorderIdrecord componentsymbol- the value for thesymbolrecord componentside- the value for thesiderecord componentquantity- the value for thequantityrecord componentprice- the value for thepricerecord componentquoteId- the value for thequoteIdrecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
getId
Description copied from interface:IdentifiableReturns the unique identifier for this entity.- Specified by:
getIdin interfaceIdentifiable<UUID>- Returns:
- the unique key
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
orderId
Returns the value of theorderIdrecord component.- Returns:
- the value of the
orderIdrecord component
-
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
-
quantity
public int quantity()Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
quoteId
Returns the value of thequoteIdrecord component.- Returns:
- the value of the
quoteIdrecord component
-
createdAt
public long createdAt()Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-