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

com.google.gerrit.server.config.AutoValue_CachedPreferences Maven / Gradle / Ivy

There is a newer version: 3.10.1
Show newest version
package com.google.gerrit.server.config;

import com.google.gerrit.server.cache.proto.Cache;
import javax.annotation.processing.Generated;

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

  private final Cache.CachedPreferencesProto config;

  AutoValue_CachedPreferences(
      Cache.CachedPreferencesProto config) {
    if (config == null) {
      throw new NullPointerException("Null config");
    }
    this.config = config;
  }

  @Override
  protected Cache.CachedPreferencesProto config() {
    return config;
  }

  @Override
  public String toString() {
    return "CachedPreferences{"
        + "config=" + config
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CachedPreferences) {
      CachedPreferences that = (CachedPreferences) o;
      return this.config.equals(that.config());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy