com.google.gerrit.server.change.AutoValue_IncludedInResolver_Result Maven / Gradle / Ivy
package com.google.gerrit.server.change;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
import org.eclipse.jgit.lib.Ref;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IncludedInResolver_Result extends IncludedInResolver.Result {
private final ImmutableList branches;
private final ImmutableList tags;
AutoValue_IncludedInResolver_Result(
ImmutableList branches,
ImmutableList 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 ImmutableList branches() {
return branches;
}
@Override
public ImmutableList 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 - 2024 Weber Informatics LLC | Privacy Policy