Record Class FrameSnapshot
java.lang.Object
java.lang.Record
dev.engine.core.frame.FrameSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptionFrameSnapshot(long frameNumber, List<Transaction> transactions) Creates an instance of aFrameSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theframeNumberrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionsrecord component.
-
Constructor Details
-
FrameSnapshot
Creates an instance of aFrameSnapshotrecord class.- Parameters:
frameNumber- the value for theframeNumberrecord componenttransactions- the value for thetransactionsrecord 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. -
frameNumber
public long frameNumber()Returns the value of theframeNumberrecord component.- Returns:
- the value of the
frameNumberrecord component
-
transactions
Returns the value of thetransactionsrecord component.- Returns:
- the value of the
transactionsrecord component
-