|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IpPort
Defines the interface for an object to return an InetAddress, port
as an integer and the host address as a string.
| Nested Class Summary | |
|---|---|
static class |
IpPort.IpComparator
An IpPort Comparator that only looks at the IP portion, not the port. |
static class |
IpPort.IpPortComparator
Compares IpPort objects. |
| Field Summary | |
|---|---|
static Comparator<IpPort> |
COMPARATOR
The sole comparator to use for IpPort objects. |
static List<IpPort> |
EMPTY_LIST
An empty list, casted to an IpPort. |
static Set<IpPort> |
EMPTY_SET
An empty set, casted to an IpPort. |
static Comparator<IpPort> |
IP_COMPARATOR
Comparator for IpPort objects that ignores the port. |
| Method Summary | |
|---|---|
String |
getAddress()
Assessor for the address string. |
InetAddress |
getInetAddress()
Assessor for the InetAddress for this host. |
InetSocketAddress |
getInetSocketAddress()
Accessor for the InetSocketAddress that can describe the IP & Port. |
int |
getPort()
Assessor for the port this host is listening on. |
| Field Detail |
|---|
static final Comparator<IpPort> IP_COMPARATOR
static final Comparator<IpPort> COMPARATOR
static final List<IpPort> EMPTY_LIST
static final Set<IpPort> EMPTY_SET
| Method Detail |
|---|
InetAddress getInetAddress()
int getPort()
String getAddress()
InetSocketAddress getInetSocketAddress()
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||