public boolean equals()

in tephra-core/src/main/java/org/apache/tephra/distributed/thrift/TTransaction.java [722:808]


  public boolean equals(TTransaction that) {
    if (that == null)
      return false;

    boolean this_present_transactionId = true;
    boolean that_present_transactionId = true;
    if (this_present_transactionId || that_present_transactionId) {
      if (!(this_present_transactionId && that_present_transactionId))
        return false;
      if (this.transactionId != that.transactionId)
        return false;
    }

    boolean this_present_readPointer = true;
    boolean that_present_readPointer = true;
    if (this_present_readPointer || that_present_readPointer) {
      if (!(this_present_readPointer && that_present_readPointer))
        return false;
      if (this.readPointer != that.readPointer)
        return false;
    }

    boolean this_present_invalids = true && this.isSetInvalids();
    boolean that_present_invalids = true && that.isSetInvalids();
    if (this_present_invalids || that_present_invalids) {
      if (!(this_present_invalids && that_present_invalids))
        return false;
      if (!this.invalids.equals(that.invalids))
        return false;
    }

    boolean this_present_inProgress = true && this.isSetInProgress();
    boolean that_present_inProgress = true && that.isSetInProgress();
    if (this_present_inProgress || that_present_inProgress) {
      if (!(this_present_inProgress && that_present_inProgress))
        return false;
      if (!this.inProgress.equals(that.inProgress))
        return false;
    }

    boolean this_present_firstShort = true;
    boolean that_present_firstShort = true;
    if (this_present_firstShort || that_present_firstShort) {
      if (!(this_present_firstShort && that_present_firstShort))
        return false;
      if (this.firstShort != that.firstShort)
        return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type))
        return false;
      if (!this.type.equals(that.type))
        return false;
    }

    boolean this_present_writePointer = true;
    boolean that_present_writePointer = true;
    if (this_present_writePointer || that_present_writePointer) {
      if (!(this_present_writePointer && that_present_writePointer))
        return false;
      if (this.writePointer != that.writePointer)
        return false;
    }

    boolean this_present_checkpointWritePointers = true && this.isSetCheckpointWritePointers();
    boolean that_present_checkpointWritePointers = true && that.isSetCheckpointWritePointers();
    if (this_present_checkpointWritePointers || that_present_checkpointWritePointers) {
      if (!(this_present_checkpointWritePointers && that_present_checkpointWritePointers))
        return false;
      if (!this.checkpointWritePointers.equals(that.checkpointWritePointers))
        return false;
    }

    boolean this_present_visibilityLevel = true && this.isSetVisibilityLevel();
    boolean that_present_visibilityLevel = true && that.isSetVisibilityLevel();
    if (this_present_visibilityLevel || that_present_visibilityLevel) {
      if (!(this_present_visibilityLevel && that_present_visibilityLevel))
        return false;
      if (!this.visibilityLevel.equals(that.visibilityLevel))
        return false;
    }

    return true;
  }