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

com.google.gerrit.server.group.db.AutoValue_AuditLogReader_SubgroupKey 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.AccountGroup;
import javax.annotation.Generated;

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

  private final AccountGroup.Id groupId;

  private final AccountGroup.UUID subgroupUuid;

  AutoValue_AuditLogReader_SubgroupKey(
      AccountGroup.Id groupId,
      AccountGroup.UUID subgroupUuid) {
    if (groupId == null) {
      throw new NullPointerException("Null groupId");
    }
    this.groupId = groupId;
    if (subgroupUuid == null) {
      throw new NullPointerException("Null subgroupUuid");
    }
    this.subgroupUuid = subgroupUuid;
  }

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

  @Override
  AccountGroup.UUID subgroupUuid() {
    return subgroupUuid;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy