com.google.gerrit.server.config.AutoValue_CachedPreferences Maven / Gradle / Ivy
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$;
}
}