in ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostEntity.java [234:256]
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HostEntity that = (HostEntity) o;
if (cpuCount != null ? !cpuCount.equals(that.cpuCount) : that.cpuCount != null) return false;
if (lastRegistrationTime != null ? !lastRegistrationTime.equals(that.lastRegistrationTime) : that.lastRegistrationTime != null) return false;
if (totalMem != null ? !totalMem.equals(that.totalMem) : that.totalMem != null) return false;
if (cpuInfo != null ? !cpuInfo.equals(that.cpuInfo) : that.cpuInfo != null) return false;
if (discoveryStatus != null ? !discoveryStatus.equals(that.discoveryStatus) : that.discoveryStatus != null)
return false;
if (hostAttributes != null ? !hostAttributes.equals(that.hostAttributes) : that.hostAttributes != null)
return false;
if (hostName != null ? !hostName.equals(that.hostName) : that.hostName != null) return false;
if (ipv4 != null ? !ipv4.equals(that.ipv4) : that.ipv4 != null) return false;
if (osArch != null ? !osArch.equals(that.osArch) : that.osArch != null) return false;
if (osInfo != null ? !osInfo.equals(that.osInfo) : that.osInfo != null) return false;
if (osType != null ? !osType.equals(that.osType) : that.osType != null) return false;
if (rackInfo != null ? !rackInfo.equals(that.rackInfo) : that.rackInfo != null) return false;
return true;
}