com.google.gerrit.server.account.AutoValue_ExternalId Maven / Gradle / Ivy
package com.google.gerrit.server.account;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.reviewdb.client.Account;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExternalId extends ExternalId {
private final ExternalId.Key key;
private final Account.Id accountId;
private final String email;
private final String password;
AutoValue_ExternalId(
ExternalId.Key key,
Account.Id accountId,
@Nullable String email,
@Nullable String password) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
if (accountId == null) {
throw new NullPointerException("Null accountId");
}
this.accountId = accountId;
this.email = email;
this.password = password;
}
@Override
public ExternalId.Key key() {
return key;
}
@Override
public Account.Id accountId() {
return accountId;
}
@Nullable
@Override
public String email() {
return email;
}
@Nullable
@Override
public String password() {
return password;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExternalId) {
ExternalId that = (ExternalId) o;
return (this.key.equals(that.key()))
&& (this.accountId.equals(that.accountId()))
&& ((this.email == null) ? (that.email() == null) : this.email.equals(that.email()))
&& ((this.password == null) ? (that.password() == null) : this.password.equals(that.password()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.key.hashCode();
h *= 1000003;
h ^= this.accountId.hashCode();
h *= 1000003;
h ^= (email == null) ? 0 : this.email.hashCode();
h *= 1000003;
h ^= (password == null) ? 0 : this.password.hashCode();
return h;
}
private static final long serialVersionUID = 1L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy