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

zipkin2.elasticsearch.internal.AutoValue_BulkCallBuilder_IndexEntry Maven / Gradle / Ivy

There is a newer version: 3.4.2
Show newest version
package zipkin2.elasticsearch.internal;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BulkCallBuilder_IndexEntry extends BulkCallBuilder.IndexEntry {

  private final String index;

  private final String typeName;

  private final T input;

  private final BulkIndexWriter writer;

  AutoValue_BulkCallBuilder_IndexEntry(
      String index,
      String typeName,
      T input,
      BulkIndexWriter writer) {
    if (index == null) {
      throw new NullPointerException("Null index");
    }
    this.index = index;
    if (typeName == null) {
      throw new NullPointerException("Null typeName");
    }
    this.typeName = typeName;
    if (input == null) {
      throw new NullPointerException("Null input");
    }
    this.input = input;
    if (writer == null) {
      throw new NullPointerException("Null writer");
    }
    this.writer = writer;
  }

  @Override
  String index() {
    return index;
  }

  @Override
  String typeName() {
    return typeName;
  }

  @Override
  T input() {
    return input;
  }

  @Override
  BulkIndexWriter writer() {
    return writer;
  }

  @Override
  public String toString() {
    return "IndexEntry{"
        + "index=" + index + ", "
        + "typeName=" + typeName + ", "
        + "input=" + input + ", "
        + "writer=" + writer
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BulkCallBuilder.IndexEntry) {
      BulkCallBuilder.IndexEntry that = (BulkCallBuilder.IndexEntry) o;
      return this.index.equals(that.index())
          && this.typeName.equals(that.typeName())
          && this.input.equals(that.input())
          && this.writer.equals(that.writer());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= index.hashCode();
    h$ *= 1000003;
    h$ ^= typeName.hashCode();
    h$ *= 1000003;
    h$ ^= input.hashCode();
    h$ *= 1000003;
    h$ ^= writer.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy