com.google.gerrit.entities.AutoValue_PatchSetApproval_Key Maven / Gradle / Ivy
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PatchSetApproval_Key extends PatchSetApproval.Key {
private final PatchSet.Id patchSetId;
private final Account.Id accountId;
private final LabelId labelId;
AutoValue_PatchSetApproval_Key(
PatchSet.Id patchSetId,
Account.Id accountId,
LabelId labelId) {
if (patchSetId == null) {
throw new NullPointerException("Null patchSetId");
}
this.patchSetId = patchSetId;
if (accountId == null) {
throw new NullPointerException("Null accountId");
}
this.accountId = accountId;
if (labelId == null) {
throw new NullPointerException("Null labelId");
}
this.labelId = labelId;
}
@Override
public PatchSet.Id patchSetId() {
return patchSetId;
}
@Override
public Account.Id accountId() {
return accountId;
}
@Override
public LabelId labelId() {
return labelId;
}
@Override
public String toString() {
return "Key{"
+ "patchSetId=" + patchSetId + ", "
+ "accountId=" + accountId + ", "
+ "labelId=" + labelId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PatchSetApproval.Key) {
PatchSetApproval.Key that = (PatchSetApproval.Key) o;
return this.patchSetId.equals(that.patchSetId())
&& this.accountId.equals(that.accountId())
&& this.labelId.equals(that.labelId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= patchSetId.hashCode();
h$ *= 1000003;
h$ ^= accountId.hashCode();
h$ *= 1000003;
h$ ^= labelId.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy