com.google.gerrit.server.approval.AutoValue_ApprovalCopier_Result Maven / Gradle / Ivy
package com.google.gerrit.server.approval;
import com.google.common.collect.ImmutableSet;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ApprovalCopier_Result extends ApprovalCopier.Result {
private final ImmutableSet copiedApprovals;
private final ImmutableSet outdatedApprovals;
AutoValue_ApprovalCopier_Result(
ImmutableSet copiedApprovals,
ImmutableSet outdatedApprovals) {
if (copiedApprovals == null) {
throw new NullPointerException("Null copiedApprovals");
}
this.copiedApprovals = copiedApprovals;
if (outdatedApprovals == null) {
throw new NullPointerException("Null outdatedApprovals");
}
this.outdatedApprovals = outdatedApprovals;
}
@Override
public ImmutableSet copiedApprovals() {
return copiedApprovals;
}
@Override
public ImmutableSet outdatedApprovals() {
return outdatedApprovals;
}
@Override
public String toString() {
return "Result{"
+ "copiedApprovals=" + copiedApprovals + ", "
+ "outdatedApprovals=" + outdatedApprovals
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ApprovalCopier.Result) {
ApprovalCopier.Result that = (ApprovalCopier.Result) o;
return this.copiedApprovals.equals(that.copiedApprovals())
&& this.outdatedApprovals.equals(that.outdatedApprovals());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= copiedApprovals.hashCode();
h$ *= 1000003;
h$ ^= outdatedApprovals.hashCode();
return h$;
}
}