public boolean equals()

in core/src/main/thrift-gen-java/org/apache/accumulo/core/process/thrift/MetricResponse.java [449:501]


  public boolean equals(MetricResponse that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_serverType = true && this.isSetServerType();
    boolean that_present_serverType = true && that.isSetServerType();
    if (this_present_serverType || that_present_serverType) {
      if (!(this_present_serverType && that_present_serverType))
        return false;
      if (!this.serverType.equals(that.serverType))
        return false;
    }

    boolean this_present_server = true && this.isSetServer();
    boolean that_present_server = true && that.isSetServer();
    if (this_present_server || that_present_server) {
      if (!(this_present_server && that_present_server))
        return false;
      if (!this.server.equals(that.server))
        return false;
    }

    boolean this_present_resourceGroup = true && this.isSetResourceGroup();
    boolean that_present_resourceGroup = true && that.isSetResourceGroup();
    if (this_present_resourceGroup || that_present_resourceGroup) {
      if (!(this_present_resourceGroup && that_present_resourceGroup))
        return false;
      if (!this.resourceGroup.equals(that.resourceGroup))
        return false;
    }

    boolean this_present_timestamp = true;
    boolean that_present_timestamp = true;
    if (this_present_timestamp || that_present_timestamp) {
      if (!(this_present_timestamp && that_present_timestamp))
        return false;
      if (this.timestamp != that.timestamp)
        return false;
    }

    boolean this_present_metrics = true && this.isSetMetrics();
    boolean that_present_metrics = true && that.isSetMetrics();
    if (this_present_metrics || that_present_metrics) {
      if (!(this_present_metrics && that_present_metrics))
        return false;
      if (!this.metrics.equals(that.metrics))
        return false;
    }

    return true;
  }