public boolean equals()

in modules/sharing-registry/sharing-registry-stubs/src/main/java/org/apache/airavata/sharing/registry/models/Sharing.java [565:644]


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

    boolean this_present_permissionTypeId = true && this.isSetPermissionTypeId();
    boolean that_present_permissionTypeId = true && that.isSetPermissionTypeId();
    if (this_present_permissionTypeId || that_present_permissionTypeId) {
      if (!(this_present_permissionTypeId && that_present_permissionTypeId))
        return false;
      if (!this.permissionTypeId.equals(that.permissionTypeId))
        return false;
    }

    boolean this_present_entityId = true && this.isSetEntityId();
    boolean that_present_entityId = true && that.isSetEntityId();
    if (this_present_entityId || that_present_entityId) {
      if (!(this_present_entityId && that_present_entityId))
        return false;
      if (!this.entityId.equals(that.entityId))
        return false;
    }

    boolean this_present_groupId = true && this.isSetGroupId();
    boolean that_present_groupId = true && that.isSetGroupId();
    if (this_present_groupId || that_present_groupId) {
      if (!(this_present_groupId && that_present_groupId))
        return false;
      if (!this.groupId.equals(that.groupId))
        return false;
    }

    boolean this_present_sharingType = true && this.isSetSharingType();
    boolean that_present_sharingType = true && that.isSetSharingType();
    if (this_present_sharingType || that_present_sharingType) {
      if (!(this_present_sharingType && that_present_sharingType))
        return false;
      if (!this.sharingType.equals(that.sharingType))
        return false;
    }

    boolean this_present_domainId = true && this.isSetDomainId();
    boolean that_present_domainId = true && that.isSetDomainId();
    if (this_present_domainId || that_present_domainId) {
      if (!(this_present_domainId && that_present_domainId))
        return false;
      if (!this.domainId.equals(that.domainId))
        return false;
    }

    boolean this_present_inheritedParentId = true && this.isSetInheritedParentId();
    boolean that_present_inheritedParentId = true && that.isSetInheritedParentId();
    if (this_present_inheritedParentId || that_present_inheritedParentId) {
      if (!(this_present_inheritedParentId && that_present_inheritedParentId))
        return false;
      if (!this.inheritedParentId.equals(that.inheritedParentId))
        return false;
    }

    boolean this_present_createdTime = true && this.isSetCreatedTime();
    boolean that_present_createdTime = true && that.isSetCreatedTime();
    if (this_present_createdTime || that_present_createdTime) {
      if (!(this_present_createdTime && that_present_createdTime))
        return false;
      if (this.createdTime != that.createdTime)
        return false;
    }

    boolean this_present_updatedTime = true && this.isSetUpdatedTime();
    boolean that_present_updatedTime = true && that.isSetUpdatedTime();
    if (this_present_updatedTime || that_present_updatedTime) {
      if (!(this_present_updatedTime && that_present_updatedTime))
        return false;
      if (this.updatedTime != that.updatedTime)
        return false;
    }

    return true;
  }