com.google.gerrit.server.change.AutoValue_IncludedInResolver_Result Maven / Gradle / Ivy
package com.google.gerrit.server.change;
import com.google.common.collect.ImmutableSortedSet;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IncludedInResolver_Result extends IncludedInResolver.Result {
private final ImmutableSortedSet branches;
private final ImmutableSortedSet tags;
AutoValue_IncludedInResolver_Result(
ImmutableSortedSet branches,
ImmutableSortedSet tags) {
if (branches == null) {
throw new NullPointerException("Null branches");
}
this.branches = branches;
if (tags == null) {
throw new NullPointerException("Null tags");
}
this.tags = tags;
}
@Override
public ImmutableSortedSet branches() {
return branches;
}
@Override
public ImmutableSortedSet tags() {
return tags;
}
@Override
public String toString() {
return "Result{"
+ "branches=" + branches + ", "
+ "tags=" + tags
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IncludedInResolver.Result) {
IncludedInResolver.Result that = (IncludedInResolver.Result) o;
return this.branches.equals(that.branches())
&& this.tags.equals(that.tags());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= branches.hashCode();
h$ *= 1000003;
h$ ^= tags.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy