public boolean equals()

in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java [774:898]


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

    boolean this_present_resourceHostId = true && this.isSetResourceHostId();
    boolean that_present_resourceHostId = true && that.isSetResourceHostId();
    if (this_present_resourceHostId || that_present_resourceHostId) {
      if (!(this_present_resourceHostId && that_present_resourceHostId))
        return false;
      if (!this.resourceHostId.equals(that.resourceHostId))
        return false;
    }

    boolean this_present_totalCPUCount = true && this.isSetTotalCPUCount();
    boolean that_present_totalCPUCount = true && that.isSetTotalCPUCount();
    if (this_present_totalCPUCount || that_present_totalCPUCount) {
      if (!(this_present_totalCPUCount && that_present_totalCPUCount))
        return false;
      if (this.totalCPUCount != that.totalCPUCount)
        return false;
    }

    boolean this_present_nodeCount = true && this.isSetNodeCount();
    boolean that_present_nodeCount = true && that.isSetNodeCount();
    if (this_present_nodeCount || that_present_nodeCount) {
      if (!(this_present_nodeCount && that_present_nodeCount))
        return false;
      if (this.nodeCount != that.nodeCount)
        return false;
    }

    boolean this_present_numberOfThreads = true && this.isSetNumberOfThreads();
    boolean that_present_numberOfThreads = true && that.isSetNumberOfThreads();
    if (this_present_numberOfThreads || that_present_numberOfThreads) {
      if (!(this_present_numberOfThreads && that_present_numberOfThreads))
        return false;
      if (this.numberOfThreads != that.numberOfThreads)
        return false;
    }

    boolean this_present_queueName = true && this.isSetQueueName();
    boolean that_present_queueName = true && that.isSetQueueName();
    if (this_present_queueName || that_present_queueName) {
      if (!(this_present_queueName && that_present_queueName))
        return false;
      if (!this.queueName.equals(that.queueName))
        return false;
    }

    boolean this_present_wallTimeLimit = true && this.isSetWallTimeLimit();
    boolean that_present_wallTimeLimit = true && that.isSetWallTimeLimit();
    if (this_present_wallTimeLimit || that_present_wallTimeLimit) {
      if (!(this_present_wallTimeLimit && that_present_wallTimeLimit))
        return false;
      if (this.wallTimeLimit != that.wallTimeLimit)
        return false;
    }

    boolean this_present_totalPhysicalMemory = true && this.isSetTotalPhysicalMemory();
    boolean that_present_totalPhysicalMemory = true && that.isSetTotalPhysicalMemory();
    if (this_present_totalPhysicalMemory || that_present_totalPhysicalMemory) {
      if (!(this_present_totalPhysicalMemory && that_present_totalPhysicalMemory))
        return false;
      if (this.totalPhysicalMemory != that.totalPhysicalMemory)
        return false;
    }

    boolean this_present_chessisNumber = true && this.isSetChessisNumber();
    boolean that_present_chessisNumber = true && that.isSetChessisNumber();
    if (this_present_chessisNumber || that_present_chessisNumber) {
      if (!(this_present_chessisNumber && that_present_chessisNumber))
        return false;
      if (!this.chessisNumber.equals(that.chessisNumber))
        return false;
    }

    boolean this_present_staticWorkingDir = true && this.isSetStaticWorkingDir();
    boolean that_present_staticWorkingDir = true && that.isSetStaticWorkingDir();
    if (this_present_staticWorkingDir || that_present_staticWorkingDir) {
      if (!(this_present_staticWorkingDir && that_present_staticWorkingDir))
        return false;
      if (!this.staticWorkingDir.equals(that.staticWorkingDir))
        return false;
    }

    boolean this_present_overrideLoginUserName = true && this.isSetOverrideLoginUserName();
    boolean that_present_overrideLoginUserName = true && that.isSetOverrideLoginUserName();
    if (this_present_overrideLoginUserName || that_present_overrideLoginUserName) {
      if (!(this_present_overrideLoginUserName && that_present_overrideLoginUserName))
        return false;
      if (!this.overrideLoginUserName.equals(that.overrideLoginUserName))
        return false;
    }

    boolean this_present_overrideScratchLocation = true && this.isSetOverrideScratchLocation();
    boolean that_present_overrideScratchLocation = true && that.isSetOverrideScratchLocation();
    if (this_present_overrideScratchLocation || that_present_overrideScratchLocation) {
      if (!(this_present_overrideScratchLocation && that_present_overrideScratchLocation))
        return false;
      if (!this.overrideScratchLocation.equals(that.overrideScratchLocation))
        return false;
    }

    boolean this_present_overrideAllocationProjectNumber = true && this.isSetOverrideAllocationProjectNumber();
    boolean that_present_overrideAllocationProjectNumber = true && that.isSetOverrideAllocationProjectNumber();
    if (this_present_overrideAllocationProjectNumber || that_present_overrideAllocationProjectNumber) {
      if (!(this_present_overrideAllocationProjectNumber && that_present_overrideAllocationProjectNumber))
        return false;
      if (!this.overrideAllocationProjectNumber.equals(that.overrideAllocationProjectNumber))
        return false;
    }

    boolean this_present_mGroupCount = true && this.isSetMGroupCount();
    boolean that_present_mGroupCount = true && that.isSetMGroupCount();
    if (this_present_mGroupCount || that_present_mGroupCount) {
      if (!(this_present_mGroupCount && that_present_mGroupCount))
        return false;
      if (this.mGroupCount != that.mGroupCount)
        return false;
    }

    return true;
  }