Record Class GhostMovementFrame
java.lang.Object
java.lang.Record
com.iantapply.conflux.api.GhostMovementFrame
- Record Components:
protocolVersion- wire protocol versionrealmId- logical network realmnodeId- unique source node identifiersessionId- unique identifier of the producing processsequence- monotonically increasing session sequencesentAtEpochMilli- source wall-clock publication timeplayers- complete movement snapshot for the node
-
Constructor Summary
ConstructorsConstructorDescriptionGhostMovementFrame(int protocolVersion, String realmId, String nodeId, UUID sessionId, long sequence, long sentAtEpochMilli, List<GhostMovement> players) Validates and defensively copies the frame. -
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.nodeId()Returns the value of thenodeIdrecord component.players()Returns the value of theplayersrecord component.intReturns the value of theprotocolVersionrecord component.realmId()Returns the value of therealmIdrecord component.longReturns the value of thesentAtEpochMillirecord component.longsequence()Returns the value of thesequencerecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GhostMovementFrame
public GhostMovementFrame(int protocolVersion, String realmId, String nodeId, UUID sessionId, long sequence, long sentAtEpochMilli, List<GhostMovement> players) Validates and defensively copies the frame.
-
-
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. -
protocolVersion
public int protocolVersion()Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
realmId
-
nodeId
-
sessionId
-
sequence
-
sentAtEpochMilli
public long sentAtEpochMilli()Returns the value of thesentAtEpochMillirecord component.- Returns:
- the value of the
sentAtEpochMillirecord component
-
players
-