Record Class LobbyConfig
java.lang.Object
java.lang.Record
dev.zwazel.internal.config.LobbyConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thefillEmptySlots
record component.final int
hashCode()
Returns a hash code value for this object.@NonNull String
Returns the value of thelobbyName
record component.@NonNull String
mapName()
Returns the value of themapName
record component.Returns the value of thespawnPoint
record component.@NonNull String
teamName()
Returns the value of theteamName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LobbyConfig
public LobbyConfig(@NonNull @NonNull String lobbyName, @NonNull @NonNull String mapName, @NonNull @NonNull String teamName, Optional<Integer> spawnPoint, boolean fillEmptySlots) Creates an instance of aLobbyConfig
record class.- Parameters:
lobbyName
- the value for thelobbyName
record componentmapName
- the value for themapName
record componentteamName
- the value for theteamName
record componentspawnPoint
- the value for thespawnPoint
record componentfillEmptySlots
- the value for thefillEmptySlots
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. -
lobbyName
Returns the value of thelobbyName
record component.- Returns:
- the value of the
lobbyName
record component
-
mapName
Returns the value of themapName
record component.- Returns:
- the value of the
mapName
record component
-
teamName
Returns the value of theteamName
record component.- Returns:
- the value of the
teamName
record component
-
spawnPoint
-
fillEmptySlots
public boolean fillEmptySlots()Returns the value of thefillEmptySlots
record component.- Returns:
- the value of the
fillEmptySlots
record component
-