|
||||||||||
| 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(InetAddress ia,
int port)
Create a new Address with given InetAddress and port |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this objcet agains another object. |
InetAddress |
getInetAddress()
Get the internet address |
int |
getPort()
Get the port number |
int |
hashCode()
Get the hash code for this object. |
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(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 Objectpublic boolean equals(Object o)
equals in class Objecto - the Object to compare against.
public String toString()
toString in class Objectpublic InetAddress getInetAddress()
public int getPort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||