public final class Config
extends Object
Stores configurations for connecting the client
- Since:
- 2023-02
-
Method Summary
Return the value in address.
Gets an instance of the static Config object, if it is null then creates one.
static int
Returns the value in port.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getInstance
public static Config getInstance()
Gets an instance of the static Config object, if it is null then creates one.
- Returns:
- Config
-
getAddress
public static String getAddress()
Return the value in address.
- Returns:
- String
-
getPort
public static int getPort()
Returns the value in port.
- Returns:
- int