public boolean equals()

in curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/OldServiceInstance.java [119:158]


    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OldServiceInstance that = (OldServiceInstance) o;

        if (registrationTimeUTC != that.registrationTimeUTC) {
            return false;
        }
        if (address != null ? !address.equals(that.address) : that.address != null) {
            return false;
        }
        if (id != null ? !id.equals(that.id) : that.id != null) {
            return false;
        }
        if (name != null ? !name.equals(that.name) : that.name != null) {
            return false;
        }
        if (payload != null ? !payload.equals(that.payload) : that.payload != null) {
            return false;
        }
        if (port != null ? !port.equals(that.port) : that.port != null) {
            return false;
        }
        if (serviceType != that.serviceType) {
            return false;
        }
        if (sslPort != null ? !sslPort.equals(that.sslPort) : that.sslPort != null) {
            return false;
        }
        if (uriSpec != null ? !uriSpec.equals(that.uriSpec) : that.uriSpec != null) {
            return false;
        }

        return true;
    }