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 aLocalBotConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
botName()
Returns the value of thebotName
record component.Returns the value of thedebugMode
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.@NonNull LobbyConfig
Returns the value of thelobbyConfig
record component.@NonNull String
serverIp()
Returns the value of theserverIp
record component.@NonNull int
Returns the value of theserverPort
record component.tankType()
Returns the value of thetankType
record component.final String
toString()
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 aLocalBotConfig
record class.- Parameters:
debugMode
- the value for thedebugMode
record componentbotName
- the value for thebotName
record componenttankType
- the value for thetankType
record componentserverIp
- the value for theserverIp
record componentserverPort
- the value for theserverPort
record componentlobbyConfig
- the value for thelobbyConfig
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. -
debugMode
Returns the value of thedebugMode
record component.- Returns:
- the value of the
debugMode
record component
-
botName
Returns the value of thebotName
record component.- Returns:
- the value of the
botName
record component
-
tankType
-
serverIp
Returns the value of theserverIp
record component.- Returns:
- the value of the
serverIp
record component
-
serverPort
@NonNull public @NonNull int serverPort()Returns the value of theserverPort
record component.- Returns:
- the value of the
serverPort
record component
-
lobbyConfig
Returns the value of thelobbyConfig
record component.- Returns:
- the value of the
lobbyConfig
record component
-