|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.io.ConnectionHandler.Address
public static class ConnectionHandler.Address
A class to handle the addresses of the connections. Basically just a pair of InetAddress and port number.
Field Summary | |
---|---|
java.net.InetAddress |
ia
The internet address of this Address. |
int |
port
The port number were connected to. |
Constructor Summary | |
---|---|
ConnectionHandler.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 objcet agains another object. |
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 |
Field Detail |
---|
public java.net.InetAddress ia
public int port
Constructor Detail |
---|
public ConnectionHandler.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.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the Object to compare against.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |