com.google.gerrit.server.approval.AutoValue_ApprovalCopier_ApprovalCopyResult 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_ApprovalCopyResult extends ApprovalCopier.ApprovalCopyResult {
private final boolean canCopy;
private final ImmutableSet passingAtoms;
private final ImmutableSet failingAtoms;
AutoValue_ApprovalCopier_ApprovalCopyResult(
boolean canCopy,
ImmutableSet passingAtoms,
ImmutableSet failingAtoms) {
this.canCopy = canCopy;
if (passingAtoms == null) {
throw new NullPointerException("Null passingAtoms");
}
this.passingAtoms = passingAtoms;
if (failingAtoms == null) {
throw new NullPointerException("Null failingAtoms");
}
this.failingAtoms = failingAtoms;
}
@Override
boolean canCopy() {
return canCopy;
}
@Override
ImmutableSet passingAtoms() {
return passingAtoms;
}
@Override
ImmutableSet failingAtoms() {
return failingAtoms;
}
@Override
public String toString() {
return "ApprovalCopyResult{"
+ "canCopy=" + canCopy + ", "
+ "passingAtoms=" + passingAtoms + ", "
+ "failingAtoms=" + failingAtoms
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ApprovalCopier.ApprovalCopyResult) {
ApprovalCopier.ApprovalCopyResult that = (ApprovalCopier.ApprovalCopyResult) o;
return this.canCopy == that.canCopy()
&& this.passingAtoms.equals(that.passingAtoms())
&& this.failingAtoms.equals(that.failingAtoms());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= canCopy ? 1231 : 1237;
h$ *= 1000003;
h$ ^= passingAtoms.hashCode();
h$ *= 1000003;
h$ ^= failingAtoms.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy