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

com.google.gerrit.server.restapi.config.AutoValue_IndexInfo_IndexVersionInfo Maven / Gradle / Ivy

The newest version!
package com.google.gerrit.server.restapi.config;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IndexInfo_IndexVersionInfo extends IndexInfo.IndexVersionInfo {

  private final boolean isWrite;

  private final boolean isSearch;

  private final int numDocs;

  AutoValue_IndexInfo_IndexVersionInfo(
      boolean isWrite,
      boolean isSearch,
      int numDocs) {
    this.isWrite = isWrite;
    this.isSearch = isSearch;
    this.numDocs = numDocs;
  }

  @Override
  boolean isWrite() {
    return isWrite;
  }

  @Override
  boolean isSearch() {
    return isSearch;
  }

  @Override
  int numDocs() {
    return numDocs;
  }

  @Override
  public String toString() {
    return "IndexVersionInfo{"
        + "isWrite=" + isWrite + ", "
        + "isSearch=" + isSearch + ", "
        + "numDocs=" + numDocs
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexInfo.IndexVersionInfo) {
      IndexInfo.IndexVersionInfo that = (IndexInfo.IndexVersionInfo) o;
      return this.isWrite == that.isWrite()
          && this.isSearch == that.isSearch()
          && this.numDocs == that.numDocs();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= isWrite ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= isSearch ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= numDocs;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy