public boolean equals()

in src/main/java/com/aliyun/openservices/log/common/Log2MetricParameters.java [37:58]


    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        Log2MetricParameters that = (Log2MetricParameters) obj;
        if (getMetricKeys() != null ? !getMetricKeys().equals(that.getMetricKeys()) : that.getMetricKeys() != null) {
            return false;
        }
        if (getLabelKeys() != null ? !getLabelKeys().equals(that.getLabelKeys()) : that.getLabelKeys() != null) {
            return false;
        }
        if (getHashLabels() != null ? !getHashLabels().equals(that.getHashLabels()) : that.getHashLabels() != null) {
            return false;
        }
        return getAddLabels() != null ? getAddLabels().equals(that.getAddLabels()) : that.getAddLabels() == null;
    }