Record Class TeamScored
java.lang.Object
java.lang.Record
dev.zwazel.internal.message.data.TeamScored
- Record Components:
scorer
- The ID of the client that scored the point.team
- The name of the team that scored the point.score
- The new score of the team that scored the point.
- All Implemented Interfaces:
MessageData
public record TeamScored(long scorer, String team, long score)
extends Record
implements MessageData
Represents the message data for when a team scores a point.
Received when a team scores a point.
-
Constructor Summary
ConstructorsConstructorDescriptionTeamScored
(long scorer, String team, long score) Creates an instance of aTeamScored
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
score()
Returns the value of thescore
record component.long
scorer()
Returns the value of thescorer
record component.team()
Returns the value of theteam
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.zwazel.internal.message.MessageData
applyBeforeSend, applyOnAddingToQueue, applyOnReceive, isUnique
-
Constructor Details
-
TeamScored
-
-
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 thecompare
method from their corresponding wrapper classes. -
scorer
-
team
-
score
-