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 aTeamConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of themaxPlayers
record component.teamName()
Returns the value of theteamName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TeamConfig
Creates an instance of aTeamConfig
record class.- Parameters:
teamName
- the value for theteamName
record componentcolor
- the value for thecolor
record componentmaxPlayers
- the value for themaxPlayers
record 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 thecompare
method from their corresponding wrapper classes. -
teamName
Returns the value of theteamName
record component.- Returns:
- the value of the
teamName
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
maxPlayers
public long maxPlayers()Returns the value of themaxPlayers
record component.- Returns:
- the value of the
maxPlayers
record component
-