com.google.gerrit.server.notedb.AutoValue_ChangeNotesParser_ApprovalKey Maven / Gradle / Ivy
package com.google.gerrit.server.notedb;
import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.reviewdb.client.PatchSet;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeNotesParser_ApprovalKey extends ChangeNotesParser.ApprovalKey {
private final PatchSet.Id psId;
private final Account.Id accountId;
private final String label;
AutoValue_ChangeNotesParser_ApprovalKey(
PatchSet.Id psId,
Account.Id accountId,
String label) {
if (psId == null) {
throw new NullPointerException("Null psId");
}
this.psId = psId;
if (accountId == null) {
throw new NullPointerException("Null accountId");
}
this.accountId = accountId;
if (label == null) {
throw new NullPointerException("Null label");
}
this.label = label;
}
@Override
PatchSet.Id psId() {
return psId;
}
@Override
Account.Id accountId() {
return accountId;
}
@Override
String label() {
return label;
}
@Override
public String toString() {
return "ApprovalKey{"
+ "psId=" + psId + ", "
+ "accountId=" + accountId + ", "
+ "label=" + label
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeNotesParser.ApprovalKey) {
ChangeNotesParser.ApprovalKey that = (ChangeNotesParser.ApprovalKey) o;
return (this.psId.equals(that.psId()))
&& (this.accountId.equals(that.accountId()))
&& (this.label.equals(that.label()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.psId.hashCode();
h *= 1000003;
h ^= this.accountId.hashCode();
h *= 1000003;
h ^= this.label.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy