All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.account.externalids.AutoValue_AllExternalIds Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc4
Show newest version


package com.google.gerrit.server.account.externalids;

import com.google.common.collect.ImmutableSetMultimap;
import com.google.gerrit.reviewdb.client.Account;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AllExternalIds extends AllExternalIds {

  private final ImmutableSetMultimap byAccount;

  private final ImmutableSetMultimap byEmail;

  AutoValue_AllExternalIds(
      ImmutableSetMultimap byAccount,
      ImmutableSetMultimap byEmail) {
    if (byAccount == null) {
      throw new NullPointerException("Null byAccount");
    }
    this.byAccount = byAccount;
    if (byEmail == null) {
      throw new NullPointerException("Null byEmail");
    }
    this.byEmail = byEmail;
  }

  @Override
  public ImmutableSetMultimap byAccount() {
    return byAccount;
  }

  @Override
  public ImmutableSetMultimap byEmail() {
    return byEmail;
  }

  @Override
  public String toString() {
    return "AllExternalIds{"
         + "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.byAccount.equals(that.byAccount()))
           && (this.byEmail.equals(that.byEmail()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= byAccount.hashCode();
    h$ *= 1000003;
    h$ ^= byEmail.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy