Code example for InetSocketAddress

Methods: equals

0
			return false; 
		if (getClass() != o.getClass())
			return false; 
 
		final DatabusServerCoordinates castedObj = (DatabusServerCoordinates) o;
		if ( _address.equals(castedObj.getAddress()) && _state.equals(castedObj.getState()) )
			return true; 
		else 
			return false; 
	} 
 
	@Override 
	public int hashCode() 
	{ 
		return (getAddress().hashCode() << 16) + getState().hashCode();
	} 
 
	@Override 
	public int compareTo(DatabusServerCoordinates o)
	{ 
		InetSocketAddress addr1 = getAddress();