com.google.gerrit.server.restapi.config.AutoValue_IndexInfo Maven / Gradle / Ivy
package com.google.gerrit.server.restapi.config;
import com.google.common.collect.ImmutableMap;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IndexInfo extends IndexInfo {
private final String name;
private final ImmutableMap versions;
AutoValue_IndexInfo(
String name,
ImmutableMap versions) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (versions == null) {
throw new NullPointerException("Null versions");
}
this.versions = versions;
}
@Override
public String getName() {
return name;
}
@Override
public ImmutableMap getVersions() {
return versions;
}
@Override
public String toString() {
return "IndexInfo{"
+ "name=" + name + ", "
+ "versions=" + versions
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IndexInfo) {
IndexInfo that = (IndexInfo) o;
return this.name.equals(that.getName())
&& this.versions.equals(that.getVersions());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= versions.hashCode();
return h$;
}
}