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

There is a newer version: 3.11.0-rc3
Show 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 write;

  private final boolean search;

  AutoValue_IndexInfo_IndexVersionInfo(
      boolean write,
      boolean search) {
    this.write = write;
    this.search = search;
  }

  @Override
  boolean isWrite() {
    return write;
  }

  @Override
  boolean isSearch() {
    return search;
  }

  @Override
  public String toString() {
    return "IndexVersionInfo{"
        + "write=" + write + ", "
        + "search=" + search
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy