Record Class LocalBotConfig
java.lang.Object
java.lang.Record
dev.zwazel.internal.config.LocalBotConfig
public record LocalBotConfig(Optional<GameWorld.DebugMode> debugMode, @NonNull String botName, @NonNull Class<? extends Tank> tankType, @NonNull String serverIp, @NonNull int serverPort, @NonNull LobbyConfig lobbyConfig)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLocalBotConfig(Optional<GameWorld.DebugMode> debugMode, @NonNull String botName, @NonNull Class<? extends Tank> tankType, @NonNull String serverIp, @NonNull int serverPort, @NonNull LobbyConfig lobbyConfig) Creates an instance of aLocalBotConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull StringbotName()Returns the value of thebotNamerecord component.Returns the value of thedebugModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull LobbyConfigReturns the value of thelobbyConfigrecord component.@NonNull StringserverIp()Returns the value of theserverIprecord component.@NonNull intReturns the value of theserverPortrecord component.tankType()Returns the value of thetankTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalBotConfig
public LocalBotConfig(Optional<GameWorld.DebugMode> debugMode, @NonNull @NonNull String botName, @NonNull @NonNull Class<? extends Tank> tankType, @NonNull @NonNull String serverIp, @NonNull @NonNull int serverPort, @NonNull @NonNull LobbyConfig lobbyConfig) Creates an instance of aLocalBotConfigrecord class.- Parameters:
debugMode- the value for thedebugModerecord componentbotName- the value for thebotNamerecord componenttankType- the value for thetankTyperecord componentserverIp- the value for theserverIprecord componentserverPort- the value for theserverPortrecord componentlobbyConfig- the value for thelobbyConfigrecord 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. -
debugMode
Returns the value of thedebugModerecord component.- Returns:
- the value of the
debugModerecord component
-
botName
Returns the value of thebotNamerecord component.- Returns:
- the value of the
botNamerecord component
-
tankType
-
serverIp
Returns the value of theserverIprecord component.- Returns:
- the value of the
serverIprecord component
-
serverPort
@NonNull public @NonNull int serverPort()Returns the value of theserverPortrecord component.- Returns:
- the value of the
serverPortrecord component
-
lobbyConfig
Returns the value of thelobbyConfigrecord component.- Returns:
- the value of the
lobbyConfigrecord component
-