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.11.0-rc3
Show newest version
package com.google.gerrit.server.config;

import javax.annotation.processing.Generated;

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

  private final String config;

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

  @Override
  public String 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