public class ServerInformation
extends java.lang.Object
Constructor and Description |
---|
ServerInformation()
Creates an empty instance
|
ServerInformation(java.lang.String hostname,
int port)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHostname()
Return the hostname.
|
int |
getPort()
Return the port
|
int |
hashCode() |
void |
setHostname(java.lang.String hostname)
Set the hostname
|
void |
setPort(int port)
Set the port
|
java.lang.String |
toString() |
public ServerInformation()
public ServerInformation(java.lang.String hostname, int port)
hostname
- The hostnameport
- The portpublic java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
hostname
- See abovepublic int getPort()
public void setPort(int port)
port
- See abovepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object