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

com.google.gerrit.server.group.db.AutoValue_AuditLogReader_MemberKey Maven / Gradle / Ivy

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


package com.google.gerrit.server.group.db;

import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.reviewdb.client.AccountGroup;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AuditLogReader_MemberKey extends AuditLogReader.MemberKey {

  private final AccountGroup.Id groupId;

  private final Account.Id memberId;

  AutoValue_AuditLogReader_MemberKey(
      AccountGroup.Id groupId,
      Account.Id memberId) {
    if (groupId == null) {
      throw new NullPointerException("Null groupId");
    }
    this.groupId = groupId;
    if (memberId == null) {
      throw new NullPointerException("Null memberId");
    }
    this.memberId = memberId;
  }

  @Override
  AccountGroup.Id groupId() {
    return groupId;
  }

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

  @Override
  public String toString() {
    return "MemberKey{"
         + "groupId=" + groupId + ", "
         + "memberId=" + memberId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AuditLogReader.MemberKey) {
      AuditLogReader.MemberKey that = (AuditLogReader.MemberKey) o;
      return (this.groupId.equals(that.groupId()))
           && (this.memberId.equals(that.memberId()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy