@Override public boolean equals(final Object other) { if (!(other instanceof Endpoint)) { return false; } final Endpoint ep = (Endpoint) other; return address.equals(ep.address) && port == ep.port && subport == ep.subport; } protected SocketAddress getAddress() { return new InetSocketAddress(address, port); } /** * Get the <code>Subport</code> value. * * @return an <code>int</code> value */ public int getSubport() {