public boolean equals()

in airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workflow/WorkflowConnection.java [679:776]


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

    boolean this_present_id = true && this.isSetId();
    boolean that_present_id = true && that.isSetId();
    if (this_present_id || that_present_id) {
      if (!(this_present_id && that_present_id))
        return false;
      if (!this.id.equals(that.id))
        return false;
    }

    boolean this_present_dataBlock = true && this.isSetDataBlock();
    boolean that_present_dataBlock = true && that.isSetDataBlock();
    if (this_present_dataBlock || that_present_dataBlock) {
      if (!(this_present_dataBlock && that_present_dataBlock))
        return false;
      if (!this.dataBlock.equals(that.dataBlock))
        return false;
    }

    boolean this_present_fromType = true && this.isSetFromType();
    boolean that_present_fromType = true && that.isSetFromType();
    if (this_present_fromType || that_present_fromType) {
      if (!(this_present_fromType && that_present_fromType))
        return false;
      if (!this.fromType.equals(that.fromType))
        return false;
    }

    boolean this_present_fromId = true && this.isSetFromId();
    boolean that_present_fromId = true && that.isSetFromId();
    if (this_present_fromId || that_present_fromId) {
      if (!(this_present_fromId && that_present_fromId))
        return false;
      if (!this.fromId.equals(that.fromId))
        return false;
    }

    boolean this_present_fromOutputName = true && this.isSetFromOutputName();
    boolean that_present_fromOutputName = true && that.isSetFromOutputName();
    if (this_present_fromOutputName || that_present_fromOutputName) {
      if (!(this_present_fromOutputName && that_present_fromOutputName))
        return false;
      if (!this.fromOutputName.equals(that.fromOutputName))
        return false;
    }

    boolean this_present_toType = true && this.isSetToType();
    boolean that_present_toType = true && that.isSetToType();
    if (this_present_toType || that_present_toType) {
      if (!(this_present_toType && that_present_toType))
        return false;
      if (!this.toType.equals(that.toType))
        return false;
    }

    boolean this_present_toId = true && this.isSetToId();
    boolean that_present_toId = true && that.isSetToId();
    if (this_present_toId || that_present_toId) {
      if (!(this_present_toId && that_present_toId))
        return false;
      if (!this.toId.equals(that.toId))
        return false;
    }

    boolean this_present_toInputName = true && this.isSetToInputName();
    boolean that_present_toInputName = true && that.isSetToInputName();
    if (this_present_toInputName || that_present_toInputName) {
      if (!(this_present_toInputName && that_present_toInputName))
        return false;
      if (!this.toInputName.equals(that.toInputName))
        return false;
    }

    boolean this_present_createdAt = true && this.isSetCreatedAt();
    boolean that_present_createdAt = true && that.isSetCreatedAt();
    if (this_present_createdAt || that_present_createdAt) {
      if (!(this_present_createdAt && that_present_createdAt))
        return false;
      if (this.createdAt != that.createdAt)
        return false;
    }

    boolean this_present_updatedAt = true && this.isSetUpdatedAt();
    boolean that_present_updatedAt = true && that.isSetUpdatedAt();
    if (this_present_updatedAt || that_present_updatedAt) {
      if (!(this_present_updatedAt && that_present_updatedAt))
        return false;
      if (this.updatedAt != that.updatedAt)
        return false;
    }

    return true;
  }