|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object async.AddressPortPair
public class AddressPortPair
A pairing of an IP address and a port number.
Constructor Summary | |
---|---|
AddressPortPair(java.net.InetAddress _addr,
int _port)
Creates a new pairing of an IP address and a port number. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.net.InetAddress |
getAddress()
Returns the IP address in the pairing. |
int |
getPort()
Returns the port number in the pairing. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AddressPortPair(java.net.InetAddress _addr, int _port)
_addr
- the IP address to pair_port
- the port number to pairMethod Detail |
---|
public java.net.InetAddress getAddress()
public int getPort()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |