|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.io.Address
public class Address
A class to handle the addresses of the connections. Basically just a pair of InetAddress and port number.
| Constructor Summary | |
|---|---|
Address(java.net.InetAddress ia,
int port)
Create a new Address with given InetAddress and port |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this object against another object. |
java.net.InetAddress |
getInetAddress()
Get the internet address. |
int |
getPort()
Get the port number. |
int |
hashCode()
Get the hash code for this object. |
java.lang.String |
toString()
Get a String representation of this Address |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Address(java.net.InetAddress ia,
int port)
ia - the InetAddress this Address is connected to.port - the port number this Address is connected to.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the Object to compare against.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.net.InetAddress getInetAddress()
public int getPort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||