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

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

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


package com.google.gerrit.server.query.change;

import com.google.gerrit.reviewdb.client.Account;
import java.sql.Timestamp;
import javax.annotation.Generated;

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

  private final Account.Id author;

  private final Timestamp ts;

  AutoValue_ChangeData_ReviewedByEvent(
      Account.Id author,
      Timestamp ts) {
    if (author == null) {
      throw new NullPointerException("Null author");
    }
    this.author = author;
    if (ts == null) {
      throw new NullPointerException("Null ts");
    }
    this.ts = ts;
  }

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

  @Override
  public Timestamp ts() {
    return ts;
  }

  @Override
  public String toString() {
    return "ReviewedByEvent{"
         + "author=" + author + ", "
         + "ts=" + ts
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeData.ReviewedByEvent) {
      ChangeData.ReviewedByEvent that = (ChangeData.ReviewedByEvent) o;
      return (this.author.equals(that.author()))
           && (this.ts.equals(that.ts()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy