public boolean equals()

in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java [869:984]


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

    boolean this_present_allExperimentCount = true;
    boolean that_present_allExperimentCount = true;
    if (this_present_allExperimentCount || that_present_allExperimentCount) {
      if (!(this_present_allExperimentCount && that_present_allExperimentCount))
        return false;
      if (this.allExperimentCount != that.allExperimentCount)
        return false;
    }

    boolean this_present_completedExperimentCount = true;
    boolean that_present_completedExperimentCount = true;
    if (this_present_completedExperimentCount || that_present_completedExperimentCount) {
      if (!(this_present_completedExperimentCount && that_present_completedExperimentCount))
        return false;
      if (this.completedExperimentCount != that.completedExperimentCount)
        return false;
    }

    boolean this_present_cancelledExperimentCount = true && this.isSetCancelledExperimentCount();
    boolean that_present_cancelledExperimentCount = true && that.isSetCancelledExperimentCount();
    if (this_present_cancelledExperimentCount || that_present_cancelledExperimentCount) {
      if (!(this_present_cancelledExperimentCount && that_present_cancelledExperimentCount))
        return false;
      if (this.cancelledExperimentCount != that.cancelledExperimentCount)
        return false;
    }

    boolean this_present_failedExperimentCount = true;
    boolean that_present_failedExperimentCount = true;
    if (this_present_failedExperimentCount || that_present_failedExperimentCount) {
      if (!(this_present_failedExperimentCount && that_present_failedExperimentCount))
        return false;
      if (this.failedExperimentCount != that.failedExperimentCount)
        return false;
    }

    boolean this_present_createdExperimentCount = true;
    boolean that_present_createdExperimentCount = true;
    if (this_present_createdExperimentCount || that_present_createdExperimentCount) {
      if (!(this_present_createdExperimentCount && that_present_createdExperimentCount))
        return false;
      if (this.createdExperimentCount != that.createdExperimentCount)
        return false;
    }

    boolean this_present_runningExperimentCount = true;
    boolean that_present_runningExperimentCount = true;
    if (this_present_runningExperimentCount || that_present_runningExperimentCount) {
      if (!(this_present_runningExperimentCount && that_present_runningExperimentCount))
        return false;
      if (this.runningExperimentCount != that.runningExperimentCount)
        return false;
    }

    boolean this_present_allExperiments = true && this.isSetAllExperiments();
    boolean that_present_allExperiments = true && that.isSetAllExperiments();
    if (this_present_allExperiments || that_present_allExperiments) {
      if (!(this_present_allExperiments && that_present_allExperiments))
        return false;
      if (!this.allExperiments.equals(that.allExperiments))
        return false;
    }

    boolean this_present_completedExperiments = true && this.isSetCompletedExperiments();
    boolean that_present_completedExperiments = true && that.isSetCompletedExperiments();
    if (this_present_completedExperiments || that_present_completedExperiments) {
      if (!(this_present_completedExperiments && that_present_completedExperiments))
        return false;
      if (!this.completedExperiments.equals(that.completedExperiments))
        return false;
    }

    boolean this_present_failedExperiments = true && this.isSetFailedExperiments();
    boolean that_present_failedExperiments = true && that.isSetFailedExperiments();
    if (this_present_failedExperiments || that_present_failedExperiments) {
      if (!(this_present_failedExperiments && that_present_failedExperiments))
        return false;
      if (!this.failedExperiments.equals(that.failedExperiments))
        return false;
    }

    boolean this_present_cancelledExperiments = true && this.isSetCancelledExperiments();
    boolean that_present_cancelledExperiments = true && that.isSetCancelledExperiments();
    if (this_present_cancelledExperiments || that_present_cancelledExperiments) {
      if (!(this_present_cancelledExperiments && that_present_cancelledExperiments))
        return false;
      if (!this.cancelledExperiments.equals(that.cancelledExperiments))
        return false;
    }

    boolean this_present_createdExperiments = true && this.isSetCreatedExperiments();
    boolean that_present_createdExperiments = true && that.isSetCreatedExperiments();
    if (this_present_createdExperiments || that_present_createdExperiments) {
      if (!(this_present_createdExperiments && that_present_createdExperiments))
        return false;
      if (!this.createdExperiments.equals(that.createdExperiments))
        return false;
    }

    boolean this_present_runningExperiments = true && this.isSetRunningExperiments();
    boolean that_present_runningExperiments = true && that.isSetRunningExperiments();
    if (this_present_runningExperiments || that_present_runningExperiments) {
      if (!(this_present_runningExperiments && that_present_runningExperiments))
        return false;
      if (!this.runningExperiments.equals(that.runningExperiments))
        return false;
    }

    return true;
  }