public final class ServerInfo extends Object
| Constructor and Description |
|---|
ServerInfo(String name,
InetSocketAddress address)
Creates a new ServerInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable Object o) |
InetSocketAddress |
getAddress() |
String |
getName() |
int |
hashCode() |
String |
toString() |
public ServerInfo(String name, InetSocketAddress address)
name - the name for the serveraddress - the address of the server to connect topublic final String getName()
public final InetSocketAddress getAddress()