com.google.gerrit.entities.AutoValue_BranchNameKey Maven / Gradle / Ivy
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BranchNameKey extends BranchNameKey {
private final Project.NameKey project;
private final String branch;
AutoValue_BranchNameKey(
Project.NameKey project,
String branch) {
if (project == null) {
throw new NullPointerException("Null project");
}
this.project = project;
if (branch == null) {
throw new NullPointerException("Null branch");
}
this.branch = branch;
}
@Override
public Project.NameKey project() {
return project;
}
@Override
public String branch() {
return branch;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BranchNameKey) {
BranchNameKey that = (BranchNameKey) o;
return this.project.equals(that.project())
&& this.branch.equals(that.branch());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= project.hashCode();
h$ *= 1000003;
h$ ^= branch.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy