public boolean equals()

in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/tenant/Tenant.java [752:867]


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

    boolean this_present_tenantId = true && this.isSetTenantId();
    boolean that_present_tenantId = true && that.isSetTenantId();
    if (this_present_tenantId || that_present_tenantId) {
      if (!(this_present_tenantId && that_present_tenantId))
        return false;
      if (!this.tenantId.equals(that.tenantId))
        return false;
    }

    boolean this_present_tenantApprovalStatus = true && this.isSetTenantApprovalStatus();
    boolean that_present_tenantApprovalStatus = true && that.isSetTenantApprovalStatus();
    if (this_present_tenantApprovalStatus || that_present_tenantApprovalStatus) {
      if (!(this_present_tenantApprovalStatus && that_present_tenantApprovalStatus))
        return false;
      if (!this.tenantApprovalStatus.equals(that.tenantApprovalStatus))
        return false;
    }

    boolean this_present_tenantName = true && this.isSetTenantName();
    boolean that_present_tenantName = true && that.isSetTenantName();
    if (this_present_tenantName || that_present_tenantName) {
      if (!(this_present_tenantName && that_present_tenantName))
        return false;
      if (!this.tenantName.equals(that.tenantName))
        return false;
    }

    boolean this_present_domain = true && this.isSetDomain();
    boolean that_present_domain = true && that.isSetDomain();
    if (this_present_domain || that_present_domain) {
      if (!(this_present_domain && that_present_domain))
        return false;
      if (!this.domain.equals(that.domain))
        return false;
    }

    boolean this_present_emailAddress = true && this.isSetEmailAddress();
    boolean that_present_emailAddress = true && that.isSetEmailAddress();
    if (this_present_emailAddress || that_present_emailAddress) {
      if (!(this_present_emailAddress && that_present_emailAddress))
        return false;
      if (!this.emailAddress.equals(that.emailAddress))
        return false;
    }

    boolean this_present_tenantAcronym = true && this.isSetTenantAcronym();
    boolean that_present_tenantAcronym = true && that.isSetTenantAcronym();
    if (this_present_tenantAcronym || that_present_tenantAcronym) {
      if (!(this_present_tenantAcronym && that_present_tenantAcronym))
        return false;
      if (!this.tenantAcronym.equals(that.tenantAcronym))
        return false;
    }

    boolean this_present_tenantURL = true && this.isSetTenantURL();
    boolean that_present_tenantURL = true && that.isSetTenantURL();
    if (this_present_tenantURL || that_present_tenantURL) {
      if (!(this_present_tenantURL && that_present_tenantURL))
        return false;
      if (!this.tenantURL.equals(that.tenantURL))
        return false;
    }

    boolean this_present_tenantPublicAbstract = true && this.isSetTenantPublicAbstract();
    boolean that_present_tenantPublicAbstract = true && that.isSetTenantPublicAbstract();
    if (this_present_tenantPublicAbstract || that_present_tenantPublicAbstract) {
      if (!(this_present_tenantPublicAbstract && that_present_tenantPublicAbstract))
        return false;
      if (!this.tenantPublicAbstract.equals(that.tenantPublicAbstract))
        return false;
    }

    boolean this_present_reviewProposalDescription = true && this.isSetReviewProposalDescription();
    boolean that_present_reviewProposalDescription = true && that.isSetReviewProposalDescription();
    if (this_present_reviewProposalDescription || that_present_reviewProposalDescription) {
      if (!(this_present_reviewProposalDescription && that_present_reviewProposalDescription))
        return false;
      if (!this.reviewProposalDescription.equals(that.reviewProposalDescription))
        return false;
    }

    boolean this_present_declinedReason = true && this.isSetDeclinedReason();
    boolean that_present_declinedReason = true && that.isSetDeclinedReason();
    if (this_present_declinedReason || that_present_declinedReason) {
      if (!(this_present_declinedReason && that_present_declinedReason))
        return false;
      if (!this.declinedReason.equals(that.declinedReason))
        return false;
    }

    boolean this_present_requestCreationTime = true && this.isSetRequestCreationTime();
    boolean that_present_requestCreationTime = true && that.isSetRequestCreationTime();
    if (this_present_requestCreationTime || that_present_requestCreationTime) {
      if (!(this_present_requestCreationTime && that_present_requestCreationTime))
        return false;
      if (this.requestCreationTime != that.requestCreationTime)
        return false;
    }

    boolean this_present_requesterUsername = true && this.isSetRequesterUsername();
    boolean that_present_requesterUsername = true && that.isSetRequesterUsername();
    if (this_present_requesterUsername || that_present_requesterUsername) {
      if (!(this_present_requesterUsername && that_present_requesterUsername))
        return false;
      if (!this.requesterUsername.equals(that.requesterUsername))
        return false;
    }

    return true;
  }