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

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

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

import javax.annotation.Generated;

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

  private final int shards;

  private final int replicas;

  AutoValue_IndexSettings(
      int shards,
      int replicas) {
    this.shards = shards;
    this.replicas = replicas;
  }

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

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

  @Override
  public String toString() {
    return "IndexSettings{"
        + "shards=" + shards + ", "
        + "replicas=" + replicas
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexSettings) {
      IndexSettings that = (IndexSettings) o;
      return this.shards == that.shards()
          && this.replicas == that.replicas();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= shards;
    h$ *= 1000003;
    h$ ^= replicas;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy