com.google.gerrit.server.restapi.project.AutoValue_ListBranches_ListBranchResult Maven / Gradle / Ivy
package com.google.gerrit.server.restapi.project;
import com.google.common.collect.ImmutableList;
import com.google.gerrit.extensions.api.projects.BranchInfo;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ListBranches_ListBranchResult extends ListBranches.ListBranchResult {
private final ImmutableList list;
private final boolean hasMore;
AutoValue_ListBranches_ListBranchResult(
ImmutableList list,
boolean hasMore) {
if (list == null) {
throw new NullPointerException("Null list");
}
this.list = list;
this.hasMore = hasMore;
}
@Override
ImmutableList list() {
return list;
}
@Override
boolean hasMore() {
return hasMore;
}
@Override
public String toString() {
return "ListBranchResult{"
+ "list=" + list + ", "
+ "hasMore=" + hasMore
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ListBranches.ListBranchResult) {
ListBranches.ListBranchResult that = (ListBranches.ListBranchResult) o;
return this.list.equals(that.list())
&& this.hasMore == that.hasMore();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= list.hashCode();
h$ *= 1000003;
h$ ^= hasMore ? 1231 : 1237;
return h$;
}
}