public final class ServerInfo extends Object implements Comparable<ServerInfo>
| Constructor and Description |
|---|
ServerInfo(String name,
InetSocketAddress address)
Creates a new ServerInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ServerInfo o) |
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()
public int compareTo(ServerInfo o)
compareTo in interface Comparable<ServerInfo>