Record Class LobbyConfig
java.lang.Object
java.lang.Record
dev.zwazel.internal.config.LobbyConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefillEmptySlotsrecord component.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of thelobbyNamerecord component.@NonNull StringmapName()Returns the value of themapNamerecord component.Returns the value of thespawnPointrecord component.@NonNull StringteamName()Returns the value of theteamNamerecord component.final StringtoString()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 aLobbyConfigrecord class.- Parameters:
lobbyName- the value for thelobbyNamerecord componentmapName- the value for themapNamerecord componentteamName- the value for theteamNamerecord componentspawnPoint- the value for thespawnPointrecord componentfillEmptySlots- the value for thefillEmptySlotsrecord 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. -
lobbyName
Returns the value of thelobbyNamerecord component.- Returns:
- the value of the
lobbyNamerecord component
-
mapName
Returns the value of themapNamerecord component.- Returns:
- the value of the
mapNamerecord component
-
teamName
Returns the value of theteamNamerecord component.- Returns:
- the value of the
teamNamerecord component
-
spawnPoint
-
fillEmptySlots
public boolean fillEmptySlots()Returns the value of thefillEmptySlotsrecord component.- Returns:
- the value of the
fillEmptySlotsrecord component
-