All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.index.AutoValue_SiteIndexer_Result Maven / Gradle / Ivy

The newest version!
package com.google.gerrit.index;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SiteIndexer_Result extends SiteIndexer.Result {

  private final long elapsedNanos;

  private final boolean success;

  private final int doneCount;

  private final int failedCount;

  AutoValue_SiteIndexer_Result(
      long elapsedNanos,
      boolean success,
      int doneCount,
      int failedCount) {
    this.elapsedNanos = elapsedNanos;
    this.success = success;
    this.doneCount = doneCount;
    this.failedCount = failedCount;
  }

  @Override
  public long elapsedNanos() {
    return elapsedNanos;
  }

  @Override
  public boolean success() {
    return success;
  }

  @Override
  public int doneCount() {
    return doneCount;
  }

  @Override
  public int failedCount() {
    return failedCount;
  }

  @Override
  public String toString() {
    return "Result{"
        + "elapsedNanos=" + elapsedNanos + ", "
        + "success=" + success + ", "
        + "doneCount=" + doneCount + ", "
        + "failedCount=" + failedCount
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SiteIndexer.Result) {
      SiteIndexer.Result that = (SiteIndexer.Result) o;
      return this.elapsedNanos == that.elapsedNanos()
          && this.success == that.success()
          && this.doneCount == that.doneCount()
          && this.failedCount == that.failedCount();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((elapsedNanos >>> 32) ^ elapsedNanos);
    h$ *= 1000003;
    h$ ^= success ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= doneCount;
    h$ *= 1000003;
    h$ ^= failedCount;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy