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

org.graylog2.rest.resources.system.indexer.responses.AutoValue_IndexSetStats Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.resources.system.indexer.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;

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

  private final long indices;

  private final long documents;

  private final long size;

  AutoValue_IndexSetStats(
      long indices,
      long documents,
      long size) {
    this.indices = indices;
    this.documents = documents;
    this.size = size;
  }

  @JsonProperty("indices")
  @Override
  public long indices() {
    return indices;
  }

  @JsonProperty("documents")
  @Override
  public long documents() {
    return documents;
  }

  @JsonProperty("size")
  @Override
  public long size() {
    return size;
  }

  @Override
  public String toString() {
    return "IndexSetStats{"
        + "indices=" + indices + ", "
        + "documents=" + documents + ", "
        + "size=" + size
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexSetStats) {
      IndexSetStats that = (IndexSetStats) o;
      return this.indices == that.indices()
          && this.documents == that.documents()
          && this.size == that.size();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((indices >>> 32) ^ indices);
    h$ *= 1000003;
    h$ ^= (int) ((documents >>> 32) ^ documents);
    h$ *= 1000003;
    h$ ^= (int) ((size >>> 32) ^ size);
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy