Record Class TeamConfig
java.lang.Object
java.lang.Record
dev.zwazel.internal.game.lobby.TeamConfig
-
Constructor Summary
ConstructorsConstructorDescriptionTeamConfig(String teamName, SimplifiedRGB color, long maxPlayers) Creates an instance of aTeamConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxPlayersrecord component.teamName()Returns the value of theteamNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TeamConfig
Creates an instance of aTeamConfigrecord class.- Parameters:
teamName- the value for theteamNamerecord componentcolor- the value for thecolorrecord componentmaxPlayers- the value for themaxPlayersrecord 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. -
teamName
Returns the value of theteamNamerecord component.- Returns:
- the value of the
teamNamerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
maxPlayers
public long maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-