Code example for InetAddress

Methods: equals

0
			return false; 
		EngineIdentifier other = (EngineIdentifier) obj;
		if (address == null) {
			if (other.address != null)
				return false; 
		} else if (!address.equals(other.address))
			return false; 
		if (port != other.port)
			return false; 
		return true; 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java