|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.otfeed.event.OTHost
public final class OTHost
Encapsulates hostname and port pair.
| Constructor Summary | |
|---|---|
OTHost()
Default constructor |
|
OTHost(java.lang.String address)
Constructor that parses string in the form "host:port" |
|
OTHost(java.lang.String host,
int port)
Constructor with parameter initialization |
|
| Method Summary | |
|---|---|
int |
compareTo(OTHost other)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHost()
Returns host value. |
int |
getPort()
Returns port value. |
int |
hashCode()
|
void |
setHost(java.lang.String host)
Sets host name. |
void |
setPort(int port)
Sets port value; |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OTHost()
public OTHost(java.lang.String host,
int port)
host - server hostport - server portpublic OTHost(java.lang.String address)
address - | Method Detail |
|---|
public void setHost(java.lang.String host)
host - host name.public java.lang.String getHost()
public void setPort(int port)
port - port value.public int getPort()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(OTHost other)
compareTo in interface java.lang.Comparable<OTHost>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||