public boolean equals()

in core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/TCompactionStatusUpdate.java [479:540]


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

    boolean this_present_state = true && this.isSetState();
    boolean that_present_state = true && that.isSetState();
    if (this_present_state || that_present_state) {
      if (!(this_present_state && that_present_state))
        return false;
      if (!this.state.equals(that.state))
        return false;
    }

    boolean this_present_message = true && this.isSetMessage();
    boolean that_present_message = true && that.isSetMessage();
    if (this_present_message || that_present_message) {
      if (!(this_present_message && that_present_message))
        return false;
      if (!this.message.equals(that.message))
        return false;
    }

    boolean this_present_entriesToBeCompacted = true;
    boolean that_present_entriesToBeCompacted = true;
    if (this_present_entriesToBeCompacted || that_present_entriesToBeCompacted) {
      if (!(this_present_entriesToBeCompacted && that_present_entriesToBeCompacted))
        return false;
      if (this.entriesToBeCompacted != that.entriesToBeCompacted)
        return false;
    }

    boolean this_present_entriesRead = true;
    boolean that_present_entriesRead = true;
    if (this_present_entriesRead || that_present_entriesRead) {
      if (!(this_present_entriesRead && that_present_entriesRead))
        return false;
      if (this.entriesRead != that.entriesRead)
        return false;
    }

    boolean this_present_entriesWritten = true;
    boolean that_present_entriesWritten = true;
    if (this_present_entriesWritten || that_present_entriesWritten) {
      if (!(this_present_entriesWritten && that_present_entriesWritten))
        return false;
      if (this.entriesWritten != that.entriesWritten)
        return false;
    }

    boolean this_present_compactionAgeNanos = true;
    boolean that_present_compactionAgeNanos = true;
    if (this_present_compactionAgeNanos || that_present_compactionAgeNanos) {
      if (!(this_present_compactionAgeNanos && that_present_compactionAgeNanos))
        return false;
      if (this.compactionAgeNanos != that.compactionAgeNanos)
        return false;
    }

    return true;
  }