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

org.graylog2.indexer.results.$AutoValue_CountResult Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version


package org.graylog2.indexer.results;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_CountResult extends CountResult {

  private final long count;

  private final long tookMs;

  $AutoValue_CountResult(
      long count,
      long tookMs) {
    this.count = count;
    this.tookMs = tookMs;
  }

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

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

  @Override
  public String toString() {
    return "CountResult{"
         + "count=" + count + ", "
         + "tookMs=" + tookMs
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy