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