com.google.gerrit.server.account.AutoValue_WatchConfig_ProjectWatchKey Maven / Gradle / Ivy
package com.google.gerrit.server.account;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.reviewdb.client.Project;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_WatchConfig_ProjectWatchKey extends WatchConfig.ProjectWatchKey {
private final Project.NameKey project;
private final String filter;
AutoValue_WatchConfig_ProjectWatchKey(
Project.NameKey project,
@Nullable String filter) {
if (project == null) {
throw new NullPointerException("Null project");
}
this.project = project;
this.filter = filter;
}
@Override
public Project.NameKey project() {
return project;
}
@Nullable
@Override
public String filter() {
return filter;
}
@Override
public String toString() {
return "ProjectWatchKey{"
+ "project=" + project + ", "
+ "filter=" + filter
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof WatchConfig.ProjectWatchKey) {
WatchConfig.ProjectWatchKey that = (WatchConfig.ProjectWatchKey) o;
return (this.project.equals(that.project()))
&& ((this.filter == null) ? (that.filter() == null) : this.filter.equals(that.filter()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.project.hashCode();
h *= 1000003;
h ^= (filter == null) ? 0 : this.filter.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy