com.google.gerrit.server.account.externalids.AutoValue_AllExternalIds Maven / Gradle / Ivy
package com.google.gerrit.server.account.externalids;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSetMultimap;
import com.google.gerrit.entities.Account;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AllExternalIds extends AllExternalIds {
private final ImmutableMap byKey;
private final ImmutableSetMultimap byAccount;
private final ImmutableSetMultimap byEmail;
AutoValue_AllExternalIds(
ImmutableMap byKey,
ImmutableSetMultimap byAccount,
ImmutableSetMultimap byEmail) {
if (byKey == null) {
throw new NullPointerException("Null byKey");
}
this.byKey = byKey;
if (byAccount == null) {
throw new NullPointerException("Null byAccount");
}
this.byAccount = byAccount;
if (byEmail == null) {
throw new NullPointerException("Null byEmail");
}
this.byEmail = byEmail;
}
@Override
public ImmutableMap byKey() {
return byKey;
}
@Override
public ImmutableSetMultimap byAccount() {
return byAccount;
}
@Override
public ImmutableSetMultimap byEmail() {
return byEmail;
}
@Override
public String toString() {
return "AllExternalIds{"
+ "byKey=" + byKey + ", "
+ "byAccount=" + byAccount + ", "
+ "byEmail=" + byEmail
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AllExternalIds) {
AllExternalIds that = (AllExternalIds) o;
return this.byKey.equals(that.byKey())
&& this.byAccount.equals(that.byAccount())
&& this.byEmail.equals(that.byEmail());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= byKey.hashCode();
h$ *= 1000003;
h$ ^= byAccount.hashCode();
h$ *= 1000003;
h$ ^= byEmail.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy