@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HealthCheckObservation == false) return false; HealthCheckObservation other = (HealthCheckObservation) obj; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getIPAddress() == null ^ this.getIPAddress() == null) return false; if (other.getIPAddress() != null && other.getIPAddress().equals(this.getIPAddress()) == false) return false; if (other.getStatusReport() == null ^ this.getStatusReport() == null) return false; if (other.getStatusReport() != null && other.getStatusReport().equals(this.getStatusReport()) == false) return false; return true; }