com.google.gerrit.entities.AutoValue_ProjectChangeKey Maven / Gradle / Ivy
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProjectChangeKey extends ProjectChangeKey {
private final Project.NameKey projectName;
private final Change.Id changeId;
AutoValue_ProjectChangeKey(
Project.NameKey projectName,
Change.Id changeId) {
if (projectName == null) {
throw new NullPointerException("Null projectName");
}
this.projectName = projectName;
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
}
@Override
public Project.NameKey projectName() {
return projectName;
}
@Override
public Change.Id changeId() {
return changeId;
}
@Override
public String toString() {
return "ProjectChangeKey{"
+ "projectName=" + projectName + ", "
+ "changeId=" + changeId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProjectChangeKey) {
ProjectChangeKey that = (ProjectChangeKey) o;
return this.projectName.equals(that.projectName())
&& this.changeId.equals(that.changeId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= projectName.hashCode();
h$ *= 1000003;
h$ ^= changeId.hashCode();
return h$;
}
}