com.google.gerrit.server.account.AutoValue_ProjectWatches_ProjectWatchKey Maven / Gradle / Ivy
package com.google.gerrit.server.account;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.entities.Project;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProjectWatches_ProjectWatchKey extends ProjectWatches.ProjectWatchKey {
private final Project.NameKey project;
@Nullable
private final String filter;
AutoValue_ProjectWatches_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 ProjectWatches.ProjectWatchKey) {
ProjectWatches.ProjectWatchKey that = (ProjectWatches.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$ ^= project.hashCode();
h$ *= 1000003;
h$ ^= (filter == null) ? 0 : filter.hashCode();
return h$;
}
}