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

com.google.gerrit.server.AutoValue_DeleteZombieComments_ChangeUserIDsPair Maven / Gradle / Ivy

There is a newer version: 3.10.0
Show newest version
package com.google.gerrit.server;

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_DeleteZombieComments_ChangeUserIDsPair extends DeleteZombieComments.ChangeUserIDsPair {

  private final Change.Id changeId;

  private final Account.Id accountId;

  AutoValue_DeleteZombieComments_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 DeleteZombieComments.ChangeUserIDsPair) {
      DeleteZombieComments.ChangeUserIDsPair that = (DeleteZombieComments.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