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

com.google.gerrit.server.query.change.AutoValue_ChangeData_StarsOf Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableSortedSet;
import com.google.gerrit.entities.Account;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeData_StarsOf extends ChangeData.StarsOf {

  private final Account.Id accountId;

  private final ImmutableSortedSet stars;

  AutoValue_ChangeData_StarsOf(
      Account.Id accountId,
      ImmutableSortedSet stars) {
    if (accountId == null) {
      throw new NullPointerException("Null accountId");
    }
    this.accountId = accountId;
    if (stars == null) {
      throw new NullPointerException("Null stars");
    }
    this.stars = stars;
  }

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

  @Override
  public ImmutableSortedSet stars() {
    return stars;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeData.StarsOf) {
      ChangeData.StarsOf that = (ChangeData.StarsOf) o;
      return this.accountId.equals(that.accountId())
          && this.stars.equals(that.stars());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy