public boolean equals()

in src/main/thrift-gen-java/org/apache/accumulo/proxy/thrift/WriterOptions.java [427:479]


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

    boolean this_present_maxMemory = true;
    boolean that_present_maxMemory = true;
    if (this_present_maxMemory || that_present_maxMemory) {
      if (!(this_present_maxMemory && that_present_maxMemory))
        return false;
      if (this.maxMemory != that.maxMemory)
        return false;
    }

    boolean this_present_latencyMs = true;
    boolean that_present_latencyMs = true;
    if (this_present_latencyMs || that_present_latencyMs) {
      if (!(this_present_latencyMs && that_present_latencyMs))
        return false;
      if (this.latencyMs != that.latencyMs)
        return false;
    }

    boolean this_present_timeoutMs = true;
    boolean that_present_timeoutMs = true;
    if (this_present_timeoutMs || that_present_timeoutMs) {
      if (!(this_present_timeoutMs && that_present_timeoutMs))
        return false;
      if (this.timeoutMs != that.timeoutMs)
        return false;
    }

    boolean this_present_threads = true;
    boolean that_present_threads = true;
    if (this_present_threads || that_present_threads) {
      if (!(this_present_threads && that_present_threads))
        return false;
      if (this.threads != that.threads)
        return false;
    }

    boolean this_present_durability = true && this.isSetDurability();
    boolean that_present_durability = true && that.isSetDurability();
    if (this_present_durability || that_present_durability) {
      if (!(this_present_durability && that_present_durability))
        return false;
      if (!this.durability.equals(that.durability))
        return false;
    }

    return true;
  }