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

org.graylog2.indexer.indices.AutoValue_IndexMoveResult Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.indexer.indices;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IndexMoveResult extends IndexMoveResult {

  private final int movedDocuments;

  private final long tookMs;

  private final boolean hasFailedItems;

  AutoValue_IndexMoveResult(
      int movedDocuments,
      long tookMs,
      boolean hasFailedItems) {
    this.movedDocuments = movedDocuments;
    this.tookMs = tookMs;
    this.hasFailedItems = hasFailedItems;
  }

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

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

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

  @Override
  public String toString() {
    return "IndexMoveResult{"
        + "movedDocuments=" + movedDocuments + ", "
        + "tookMs=" + tookMs + ", "
        + "hasFailedItems=" + hasFailedItems
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexMoveResult) {
      IndexMoveResult that = (IndexMoveResult) o;
      return this.movedDocuments == that.movedDocuments()
          && this.tookMs == that.tookMs()
          && this.hasFailedItems == that.hasFailedItems();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= movedDocuments;
    h$ *= 1000003;
    h$ ^= (int) ((tookMs >>> 32) ^ tookMs);
    h$ *= 1000003;
    h$ ^= hasFailedItems ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy