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 aTeamScoredrecord class. -
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.longscore()Returns the value of thescorerecord component.longscorer()Returns the value of thescorerrecord component.team()Returns the value of theteamrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 thecomparemethod from their corresponding wrapper classes. -
scorer
-
team
-
score
-