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

      MetricDefinition that = (MetricDefinition) o;

      if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) return false;
      if (nodeName != null ? !nodeName.equalsIgnoreCase(that.nodeName) : that.nodeName != null) return false;
      if (recordTypeContext != null ? !recordTypeContext.equals(that.recordTypeContext) : that.recordTypeContext != null)
        return false;
      if (recordTypeName != null ? !recordTypeName.equals(that.recordTypeName) : that.recordTypeName != null)
        return false;
      if (serviceName != null ? !serviceName.equals(that.serviceName) : that.serviceName != null) return false;
      if (tagPairsPattern != null ? !(tagPairsPattern.contains(that.tagPairsPattern) ||
        that.tagPairsPattern.contains(tagPairsPattern)) : that.tagPairsPattern != null)
        return false;

      return true;
    }
Get the value.

@return the value
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/scom/SQLPropertyProvider.java