com.google.gerrit.server.git.AutoValue_MergeSuperSet_QueryKey Maven / Gradle / Ivy
package com.google.gerrit.server.git;
import com.google.common.collect.ImmutableSet;
import com.google.gerrit.reviewdb.client.Branch;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MergeSuperSet_QueryKey extends MergeSuperSet.QueryKey {
private final Branch.NameKey branch;
private final ImmutableSet hashes;
AutoValue_MergeSuperSet_QueryKey(
Branch.NameKey branch,
ImmutableSet hashes) {
if (branch == null) {
throw new NullPointerException("Null branch");
}
this.branch = branch;
if (hashes == null) {
throw new NullPointerException("Null hashes");
}
this.hashes = hashes;
}
@Override
Branch.NameKey branch() {
return branch;
}
@Override
ImmutableSet hashes() {
return hashes;
}
@Override
public String toString() {
return "QueryKey{"
+ "branch=" + branch + ", "
+ "hashes=" + hashes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MergeSuperSet.QueryKey) {
MergeSuperSet.QueryKey that = (MergeSuperSet.QueryKey) o;
return (this.branch.equals(that.branch()))
&& (this.hashes.equals(that.hashes()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.branch.hashCode();
h *= 1000003;
h ^= this.hashes.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy