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

com.google.gerrit.server.notedb.AutoValue_DeleteZombieCommentsRefs_ChangeUserIDsPair Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.server.notedb;

import com.google.gerrit.entities.Account;
import com.google.gerrit.entities.Change;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DeleteZombieCommentsRefs_ChangeUserIDsPair extends DeleteZombieCommentsRefs.ChangeUserIDsPair {

  private final Change.Id changeId;

  private final Account.Id accountId;

  AutoValue_DeleteZombieCommentsRefs_ChangeUserIDsPair(
      Change.Id changeId,
      Account.Id accountId) {
    if (changeId == null) {
      throw new NullPointerException("Null changeId");
    }
    this.changeId = changeId;
    if (accountId == null) {
      throw new NullPointerException("Null accountId");
    }
    this.accountId = accountId;
  }

  @Override
  Change.Id changeId() {
    return changeId;
  }

  @Override
  Account.Id accountId() {
    return accountId;
  }

  @Override
  public String toString() {
    return "ChangeUserIDsPair{"
        + "changeId=" + changeId + ", "
        + "accountId=" + accountId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DeleteZombieCommentsRefs.ChangeUserIDsPair) {
      DeleteZombieCommentsRefs.ChangeUserIDsPair that = (DeleteZombieCommentsRefs.ChangeUserIDsPair) o;
      return this.changeId.equals(that.changeId())
          && this.accountId.equals(that.accountId());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy