Package edu.yu.marketmaker.model
Record Class StateSnapshot
java.lang.Object
java.lang.Record
edu.yu.marketmaker.model.StateSnapshot
- Record Components:
position- the current net position for a symbolfill- the fill that triggered this position change
A snapshot of a single position together with the fill that triggered
the position change. Sent as individual stream items to RSocket subscribers.
-
Constructor Summary
ConstructorsConstructorDescriptionStateSnapshot(Position position, Fill fill) Creates an instance of aStateSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fill()Returns the value of thefillrecord component.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
fill
Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord component
-