Code example for InetAddress

Methods: equals

0
	@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() 
	{ 
Connect your IDE to all the code out there  Get Codota for Java