
com.google.gerrit.server.account.AutoValue_AccountState Maven / Gradle / Ivy
package com.google.gerrit.server.account;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.gerrit.entities.Account;
import com.google.gerrit.server.account.externalids.ExternalId;
import java.util.Optional;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AccountState extends AccountState {
private final Account account;
private final ImmutableSet externalIds;
private final Optional userName;
private final ImmutableMap> projectWatches;
private final Preferences.General immutableGeneralPreferences;
private final Preferences.Diff immutableDiffPreferences;
private final Preferences.Edit immutableEditPreferences;
AutoValue_AccountState(
Account account,
ImmutableSet externalIds,
Optional userName,
ImmutableMap> projectWatches,
Preferences.General immutableGeneralPreferences,
Preferences.Diff immutableDiffPreferences,
Preferences.Edit immutableEditPreferences) {
if (account == null) {
throw new NullPointerException("Null account");
}
this.account = account;
if (externalIds == null) {
throw new NullPointerException("Null externalIds");
}
this.externalIds = externalIds;
if (userName == null) {
throw new NullPointerException("Null userName");
}
this.userName = userName;
if (projectWatches == null) {
throw new NullPointerException("Null projectWatches");
}
this.projectWatches = projectWatches;
if (immutableGeneralPreferences == null) {
throw new NullPointerException("Null immutableGeneralPreferences");
}
this.immutableGeneralPreferences = immutableGeneralPreferences;
if (immutableDiffPreferences == null) {
throw new NullPointerException("Null immutableDiffPreferences");
}
this.immutableDiffPreferences = immutableDiffPreferences;
if (immutableEditPreferences == null) {
throw new NullPointerException("Null immutableEditPreferences");
}
this.immutableEditPreferences = immutableEditPreferences;
}
@Override
public Account account() {
return account;
}
@Override
public ImmutableSet externalIds() {
return externalIds;
}
@Override
public Optional userName() {
return userName;
}
@Override
public ImmutableMap> projectWatches() {
return projectWatches;
}
@Override
protected Preferences.General immutableGeneralPreferences() {
return immutableGeneralPreferences;
}
@Override
protected Preferences.Diff immutableDiffPreferences() {
return immutableDiffPreferences;
}
@Override
protected Preferences.Edit immutableEditPreferences() {
return immutableEditPreferences;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AccountState) {
AccountState that = (AccountState) o;
return this.account.equals(that.account())
&& this.externalIds.equals(that.externalIds())
&& this.userName.equals(that.userName())
&& this.projectWatches.equals(that.projectWatches())
&& this.immutableGeneralPreferences.equals(that.immutableGeneralPreferences())
&& this.immutableDiffPreferences.equals(that.immutableDiffPreferences())
&& this.immutableEditPreferences.equals(that.immutableEditPreferences());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= account.hashCode();
h$ *= 1000003;
h$ ^= externalIds.hashCode();
h$ *= 1000003;
h$ ^= userName.hashCode();
h$ *= 1000003;
h$ ^= projectWatches.hashCode();
h$ *= 1000003;
h$ ^= immutableGeneralPreferences.hashCode();
h$ *= 1000003;
h$ ^= immutableDiffPreferences.hashCode();
h$ *= 1000003;
h$ ^= immutableEditPreferences.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy