Record Class GhostFrame
java.lang.Object
java.lang.Record
com.iantapply.conflux.api.GhostFrame
- Record Components:
protocolVersion- wire protocol versionrealmId- logical network realmnodeId- unique identifier of the node that produced the framesessionId- unique identifier of the producing processsequence- monotonically increasing frame sequence for the source nodesentAtEpochMilli- time at which the source node sent the frame, in Unix epoch millisecondsplayers- immutable visual states for players connected to the source node
-
Constructor Summary
ConstructorsConstructorDescriptionGhostFrame(int protocolVersion, String realmId, String nodeId, UUID sessionId, long sequence, long sentAtEpochMilli, List<GhostState> players) Validates the frame and defensively copies its player states. -
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
-
GhostFrame
public GhostFrame(int protocolVersion, String realmId, String nodeId, UUID sessionId, long sequence, long sentAtEpochMilli, List<GhostState> players) Validates the frame and defensively copies its player states.
-
-
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
-